| 1 | <?php |
||
| 10 | class RawEventStream implements ByClassNamesEventStream |
||
| 11 | { |
||
| 12 | |||
| 13 | private $groupedEventsArray = []; |
||
| 14 | |||
| 15 | /** @var int|null */ |
||
| 16 | private $limit; |
||
| 17 | |||
| 18 | /** @var int|null */ |
||
| 19 | private $skip; |
||
| 20 | |||
| 21 | 3 | public function __construct($groupedEventsArray) |
|
| 25 | |||
| 26 | 2 | public function getIterator() |
|
| 52 | |||
| 53 | 1 | public function limitCommits(int $limit) |
|
| 57 | |||
| 58 | 1 | public function skipCommits(int $numberOfCommits) |
|
| 62 | |||
| 63 | 1 | public function countCommits():int |
|
| 67 | } |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
integervalues, zero is a special case, in particular the following results might be unexpected: