src/IterationAwareTrait.php
Return type of _getIteration()
is undeclared type \Dhii\Iterator\IterationInterface
Open
Open
protected function _getIteration()
- Exclude checks
Property \Dhii\Iterator\IterationAwareTrait->iteration
has undeclared type \Dhii\Iterator\IterationInterface
Open
Open
protected $iteration;
- Exclude checks
Parameter $iteration
has undeclared type \Dhii\Iterator\IterationInterface
Open
Open
protected function _setIteration(IterationInterface $iteration = null)
- Exclude checks
The method _getIteration is not named in camelCase. Open
Open
protected function _getIteration()
{
return $this->iteration;
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method _setIteration is not named in camelCase. Open
Open
protected function _setIteration(IterationInterface $iteration = null)
{
$this->iteration = $iteration;
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}