1 | <?php |
||
6 | class RpcRequestCollection implements RpcRequestCollectionInterface, \IteratorAggregate, \Countable |
||
7 | { |
||
8 | private $priority; |
||
9 | public $requests = []; |
||
10 | |||
11 | public function __construct($priority = RpcRequestCollectionInterface::PRIORITY_LOW) |
||
15 | |||
16 | public function getIterator() |
||
20 | |||
21 | public function count() |
||
25 | |||
26 | public function add(RpcRequestInterface $request) |
||
35 | |||
36 | public function all() |
||
40 | |||
41 | public function get($id) |
||
49 | |||
50 | /** |
||
51 | * @param RpcRequest $request |
||
52 | * @return string|int|null |
||
53 | */ |
||
54 | public function getRequestIndex(RpcRequest $request) |
||
58 | |||
59 | /** |
||
60 | * @param $id |
||
61 | */ |
||
62 | public function remove($id) |
||
66 | |||
67 | /** |
||
68 | * @param RpcRequestCollection $collection |
||
69 | */ |
||
70 | public function addCollection(RpcRequestCollection $collection) |
||
77 | |||
78 | /** |
||
79 | * @param $priorityNumber |
||
80 | */ |
||
81 | public function changePriority($priorityNumber) |
||
88 | |||
89 | /** |
||
90 | * Return octect priority |
||
91 | * |
||
92 | * @return int |
||
93 | */ |
||
94 | public function getPriority() |
||
98 | } |
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.