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