| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 1 | public function execute($request) |
|
| 24 | { |
||
| 25 | 1 | RequestNotSupportedException::assertSupports($this, $request); |
|
| 26 | 1 | $httpRequest = new GetHttpRequest(); |
|
| 27 | 1 | $this->gateway->execute($httpRequest); |
|
| 28 | |||
| 29 | 1 | $notifyToken = $httpRequest->request[Api::NOTIFY_TOKEN_FIELD]; |
|
| 30 | 1 | $getToken = new GetToken($notifyToken); |
|
| 31 | 1 | $this->gateway->execute($getToken); |
|
| 32 | 1 | $this->gateway->execute(new Notify($getToken->getToken())); |
|
| 33 | 1 | } |
|
| 34 | |||
| 45 |