1 | <?php |
||
18 | class EntityIdReader implements EntityIdPager { |
||
19 | |||
20 | /** |
||
21 | * @var LineReader |
||
22 | */ |
||
23 | private $reader; |
||
24 | |||
25 | /** |
||
26 | * @var EntityIdParser |
||
27 | */ |
||
28 | private $parser; |
||
29 | |||
30 | /** |
||
31 | * @var string|null |
||
32 | */ |
||
33 | private $entityType; |
||
34 | |||
35 | /** |
||
36 | * @var ExceptionHandler |
||
37 | */ |
||
38 | private $exceptionHandler; |
||
39 | |||
40 | /** |
||
41 | * @param LineReader $reader |
||
42 | * @param EntityIdParser $parser |
||
43 | * @param null|string $entityType The desired entity type, or null for any type. |
||
44 | */ |
||
45 | public function __construct( LineReader $reader, EntityIdParser $parser, $entityType = null ) { |
||
52 | |||
53 | public function setExceptionHandler( ExceptionHandler $exceptionHandler ) { |
||
56 | |||
57 | /** |
||
58 | * @return ExceptionHandler |
||
59 | */ |
||
60 | public function getExceptionHandler() { |
||
63 | |||
64 | /** |
||
65 | * @param string $line |
||
66 | * @return EntityId|null |
||
67 | */ |
||
68 | protected function lineToId( $line ) { |
||
80 | |||
81 | /** |
||
82 | * Closes the underlying input stream |
||
83 | */ |
||
84 | public function dispose() { |
||
87 | |||
88 | /** |
||
89 | * Returns the next ID (or null if there are no more ids). |
||
90 | * |
||
91 | * @return EntityId|null |
||
92 | */ |
||
93 | protected function next() { |
||
123 | |||
124 | /** |
||
125 | * Fetches the next batch of IDs. Calling this has the side effect of advancing the |
||
126 | * internal state of the page, typically implemented by some underlying resource |
||
127 | * such as a file pointer or a database connection. |
||
128 | * |
||
129 | * @note After some finite number of calls, this method should eventually return |
||
130 | * an empty list of IDs, indicating that no more IDs are available. |
||
131 | * |
||
132 | * @param int $limit The maximum number of IDs to return. |
||
133 | * |
||
134 | * @return EntityId[] A list of EntityIds matching the given parameters. Will |
||
135 | * be empty if there are no more entities to list from the given offset. |
||
136 | */ |
||
137 | public function fetchIds( $limit ) { |
||
152 | |||
153 | } |
||
154 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.