Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function __construct(string $symbol, string $interval, ?string $reqId = null) |
||
14 | { |
||
15 | parent::__construct($symbol, $reqId); |
||
16 | |||
17 | if (!in_array($interval, WebSocketSpotIntervalEnum::ALL)) { |
||
18 | throw new \Exception("Invalid interval {$interval} specified. See the list of available intervals in the file: " . WebSocketSpotIntervalEnum::class); |
||
19 | } |
||
20 | |||
21 | $this->interval = $interval; |
||
22 | } |
||
37 |