| Total Complexity | 7 | 
| Total Lines | 51 | 
| Duplicated Lines | 0 % | 
| Coverage | 83.33% | 
| Changes | 8 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 11 | class TransactionStatusResponse extends AbstractResponse  | 
            ||
| 12 | { | 
            ||
| 13 | /**  | 
            ||
| 14 | * @var int  | 
            ||
| 15 | */  | 
            ||
| 16 | private $statusCode;  | 
            ||
| 17 | |||
| 18 | /**  | 
            ||
| 19 | * TransactionStatusResponse constructor.  | 
            ||
| 20 | *  | 
            ||
| 21 | * @param RequestInterface $request  | 
            ||
| 22 | * @param mixed $data  | 
            ||
| 23 | * @param int $statusCode  | 
            ||
| 24 | */  | 
            ||
| 25 | 4 | public function __construct(RequestInterface $request, $data, int $statusCode)  | 
            |
| 30 | 4 | }  | 
            |
| 31 | |||
| 32 | /**  | 
            ||
| 33 |      * {@inheritdoc} | 
            ||
| 34 | */  | 
            ||
| 35 | public function getCode()  | 
            ||
| 36 |     { | 
            ||
| 37 | return $this->statusCode;  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 40 | /**  | 
            ||
| 41 |      * {@inheritdoc} | 
            ||
| 42 | */  | 
            ||
| 43 | 2 | public function isSuccessful(): bool  | 
            |
| 46 | }  | 
            ||
| 47 | |||
| 48 | /**  | 
            ||
| 49 |      * {@inheritdoc} | 
            ||
| 50 | */  | 
            ||
| 51 | 1 | public function isCancelled(): bool  | 
            |
| 52 |     { | 
            ||
| 53 | 1 | return isset($this->data['status']) && $this->data['status'] === self::RESPONSE_STATUS_CANCELLED;  | 
            |
| 54 | }  | 
            ||
| 55 | |||
| 56 | /**  | 
            ||
| 57 |      * {@inheritdoc} | 
            ||
| 58 | */  | 
            ||
| 59 | 1 | public function getTransactionReference(): ?string  | 
            |
| 62 | }  | 
            ||
| 63 | }  | 
            ||
| 64 |