Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
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 | } |
||
30 |