| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 12 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 17 | public function getTopic(): array | ||
| 18 |     { | ||
| 19 |         if (!isset($this->depth)) { | ||
| 20 |             throw new \Exception("You must set depth parameter!"); | ||
| 21 | } | ||
| 22 | |||
| 23 | $topics = []; | ||
| 24 |         foreach ($this->symbols as $symbol) { | ||
| 25 |             $topics[] = WebSocketTopicNameEnum::ORDERBOOK . ".{$this->getDepth()}." . $symbol; | ||
| 26 | } | ||
| 27 | |||
| 28 | return $topics; | ||
| 29 | } | ||
| 57 | } |