| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class OrderBookArgument extends WebSocketArgument |
||
| 11 | { |
||
| 12 | private int $depth; |
||
| 13 | |||
| 14 | public function __construct(string $symbol, int $depth, ?string $reqId = null) |
||
| 15 | { |
||
| 16 | parent::__construct($symbol, $reqId); |
||
| 17 | |||
| 18 | if (!in_array($depth, WebSocketOrderBookDepth::ALL)) { |
||
| 19 | throw new \Exception("Invalid interval {$depth} specified. See the list of available intervals in the file: " . EnumIntervals::class); |
||
| 20 | } |
||
| 21 | |||
| 22 | $this->depth = $depth; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getTopic(): array |
||
| 28 | } |
||
| 29 | } |
||
| 30 |