1 | <?php |
||
22 | final class BatchRequest implements CommandInterface |
||
23 | { |
||
24 | /** @var string[] */ |
||
25 | private $channels = []; |
||
26 | |||
27 | /** @var CommandInterface[] */ |
||
28 | private $commands = []; |
||
29 | |||
30 | /** |
||
31 | * @param CommandInterface[] $commands |
||
32 | * |
||
33 | * @throws UnexpectedValueException |
||
34 | */ |
||
35 | public function __construct(array $commands = []) |
||
45 | |||
46 | /** |
||
47 | * @param CommandInterface $command |
||
48 | */ |
||
49 | public function addCommand(CommandInterface $command): void |
||
54 | |||
55 | /** |
||
56 | * @return CommandInterface[] |
||
57 | */ |
||
58 | public function getCommands(): iterable |
||
64 | |||
65 | /** |
||
66 | * @return int |
||
67 | */ |
||
68 | public function getNumberOfCommands(): int |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function getChannels(): iterable |
||
82 | |||
83 | /** |
||
84 | * @return string |
||
85 | */ |
||
86 | public function prepareLineDelimitedJson(): string |
||
102 | } |
||
103 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..