1 | <?php |
||
21 | class ResponseHandler implements LoggerAwareInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var \SplObjectStorage |
||
25 | */ |
||
26 | private $responseCollection; |
||
27 | |||
28 | /** |
||
29 | * @var \ArrayIterator |
||
30 | */ |
||
31 | private $invalidRecipients; |
||
32 | |||
33 | /** |
||
34 | * @var \ArrayIterator |
||
35 | */ |
||
36 | private $messageErrors; |
||
37 | |||
38 | /** |
||
39 | * @var LoggerInterface |
||
40 | */ |
||
41 | private $logger; |
||
42 | |||
43 | public function __construct() |
||
48 | |||
49 | /** |
||
50 | * @param string $messageIdentifier |
||
51 | * @param ResponseInterface $response |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function addIdentifiedResponse($messageIdentifier, ResponseInterface $response) |
||
63 | |||
64 | /** |
||
65 | * @param ResponseInterface $response |
||
66 | * @return $this |
||
67 | */ |
||
68 | public function addResponse(ResponseInterface $response) |
||
73 | |||
74 | public function handleResponseCollection() |
||
87 | |||
88 | /** |
||
89 | * @param ResponseInterface $response |
||
90 | * @param string $messageIdentifier |
||
91 | */ |
||
92 | public function handleResponse(ResponseInterface $response, $messageIdentifier) |
||
120 | |||
121 | /** |
||
122 | * @return \ArrayIterator |
||
123 | */ |
||
124 | public function getMessageErrors() |
||
128 | |||
129 | /** |
||
130 | * @return \ArrayIterator |
||
131 | */ |
||
132 | public function getInvalidRecipients() |
||
136 | |||
137 | /** |
||
138 | * @param LoggerInterface $logger |
||
139 | * @return $this |
||
140 | */ |
||
141 | public function setLogger(LoggerInterface $logger) |
||
146 | } |
||
147 |
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..