| Total Complexity | 6 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class MindBoxRequest |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | protected $operationName; |
||
| 13 | /** @var array */ |
||
| 14 | protected $body = []; |
||
| 15 | /** @var string|null */ |
||
| 16 | protected $deviceUUID; |
||
| 17 | /** @var int */ |
||
| 18 | protected $mode = MindBoxClient::MODE_SYNCHRONOUS; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 1 | public function getOperationName() |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string|null |
||
| 30 | */ |
||
| 31 | 1 | public function getDeviceUUID(): ?string |
|
| 32 | { |
||
| 33 | 1 | return $this->deviceUUID; |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function getBody(): array |
||
| 40 | { |
||
| 41 | return $this->body; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 1 | public function getBodyAsJson(): string |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return int |
||
| 54 | */ |
||
| 55 | public function getMode(): int |
||
| 56 | { |
||
| 57 | return $this->mode; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return bool |
||
| 62 | */ |
||
| 63 | 1 | public function isAsync(): bool |
|
| 66 | } |
||
| 67 | } |
||
| 68 |