1 | <?php |
||
20 | class ResponseHandler implements LoggerAwareInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var \SplObjectStorage |
||
24 | */ |
||
25 | private $responseCollection; |
||
26 | |||
27 | /** |
||
28 | * @var \ArrayIterator |
||
29 | */ |
||
30 | private $invalidRecipients; |
||
31 | |||
32 | /** |
||
33 | * @var \ArrayIterator |
||
34 | */ |
||
35 | private $messageExceptions; |
||
36 | |||
37 | /** |
||
38 | * @var LoggerInterface |
||
39 | */ |
||
40 | private $logger; |
||
41 | |||
42 | public function __construct() |
||
47 | |||
48 | /** |
||
49 | * @param string $messageIdentifier |
||
50 | * @param ResponseInterface $response |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function addMessageResponse($messageIdentifier, ResponseInterface $response) |
||
60 | |||
61 | /** |
||
62 | * @param ResponseInterface $response |
||
63 | * @return $this |
||
64 | */ |
||
65 | public function addResponse(ResponseInterface $response) |
||
70 | |||
71 | public function handleResponseCollection() |
||
82 | |||
83 | /** |
||
84 | * @param ResponseInterface $response |
||
85 | * @param string $messageIdentifier |
||
86 | */ |
||
87 | public function handleResponse(ResponseInterface $response, $messageIdentifier) |
||
115 | |||
116 | /** |
||
117 | * @return \ArrayIterator |
||
118 | */ |
||
119 | public function getMessageExceptions() |
||
123 | |||
124 | /** |
||
125 | * @return \ArrayIterator |
||
126 | */ |
||
127 | public function getInvalidRecipients() |
||
131 | |||
132 | /** |
||
133 | * @param LoggerInterface $logger |
||
134 | * @return $this |
||
135 | */ |
||
136 | public function setLogger(LoggerInterface $logger) |
||
141 | } |
||
142 |
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..