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