| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function __construct(Traversable $iterator, $chunkSize) |
||
| 25 | { |
||
| 26 | $chunkSize = (int) $chunkSize; |
||
| 27 | if ($chunkSize < 1) { |
||
| 28 | throw new InvalidArgumentException("The chunk size must be equal or greater than zero; $chunkSize given"); |
||
| 29 | } |
||
| 30 | parent::__construct($iterator); |
||
| 31 | $this->chunkSize = $chunkSize; |
||
| 32 | } |
||
| 33 | |||
| 75 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.