| Total Complexity | 7 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class GetTicketRequest extends GetMessageRequest implements RequestsManager, SetTimeoutHandler |
||
| 13 | { |
||
| 14 | private $response; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var ResponseSendMessage |
||
| 18 | */ |
||
| 19 | private $xmlResponse; |
||
| 20 | private $strategyTimeout; |
||
| 21 | |||
| 22 | public function setTimeoutStrategy(TimeoutStrategyHandler $strategyHandler) |
||
| 23 | { |
||
| 24 | $this->strategyTimeout = $strategyHandler; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function send() |
||
| 28 | { |
||
| 29 | $this->strategyTimeout->handleTimeout(); |
||
| 30 | $this->xmlResponse = simplexml_load_string($this->response->Message->any, $this->getXmlResponseClass()); |
||
|
|
|||
| 31 | } |
||
| 32 | |||
| 33 | public function getTypeMessage(): string |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getXmlResponseClass(): string |
||
| 39 | { |
||
| 40 | return GetTicketXmlResponse::class; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getResponse(): ResponseSendMessage |
||
| 44 | { |
||
| 45 | return $this->xmlResponse; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function isProcessFinished(): bool |
||
| 49 | { |
||
| 50 | return $this->isCompleted($this->response); |
||
| 51 | } |
||
| 52 | |||
| 53 | public function executeRequest(): void |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
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..