| Total Complexity | 6 | 
| Total Lines | 35 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 10 | class CryptoCurrenciesCollection extends Collection  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * CryptoCurrenciesCollection constructor.  | 
            ||
| 14 | * @param array $data  | 
            ||
| 15 | */  | 
            ||
| 16 | 24 | public function __construct(array $data = [])  | 
            |
| 17 |     { | 
            ||
| 18 | 24 | if ($this->check($data))  | 
            |
| 19 |         { | 
            ||
| 20 | 12 | parent::__construct($data);  | 
            |
| 21 | }  | 
            ||
| 22 | else  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 23 |         { | 
            ||
| 24 | 12 |             throw new \InvalidArgumentException('Item from array must be instance of CryptoCurrencyObject'); | 
            |
| 25 | }  | 
            ||
| 26 | 12 | }  | 
            |
| 27 | |||
| 28 | /**  | 
            ||
| 29 | * @param array $data  | 
            ||
| 30 | * @return bool  | 
            ||
| 31 | */  | 
            ||
| 32 | 24 | private function check(array $data): bool  | 
            |
| 45 | }  | 
            ||
| 46 | }  | 
            ||
| 47 |