Dhii/iterator-abstract

View on GitHub
src/IterationAwareTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

Return type of _getIteration() is undeclared type \Dhii\Iterator\IterationInterface
Open

    protected function _getIteration()
Severity: Minor
Found in src/IterationAwareTrait.php by phan

Property \Dhii\Iterator\IterationAwareTrait->iteration has undeclared type \Dhii\Iterator\IterationInterface
Open

    protected $iteration;
Severity: Minor
Found in src/IterationAwareTrait.php by phan

Parameter $iteration has undeclared type \Dhii\Iterator\IterationInterface
Open

    protected function _setIteration(IterationInterface $iteration = null)
Severity: Minor
Found in src/IterationAwareTrait.php by phan

The method _getIteration is not named in camelCase.
Open

    protected function _getIteration()
    {
        return $this->iteration;
    }
Severity: Minor
Found in src/IterationAwareTrait.php by phpmd

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

    protected function _setIteration(IterationInterface $iteration = null)
    {
        $this->iteration = $iteration;
    }
Severity: Minor
Found in src/IterationAwareTrait.php by phpmd

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

There are no issues that match your filters.

Category
Status