| Total Complexity | 7 | 
| Total Lines | 50 | 
| Duplicated Lines | 0 % | 
| Coverage | 93.33% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 7 | trait Attachable  | 
            ||
| 8 | { | 
            ||
| 9 | |||
| 10 | /**  | 
            ||
| 11 | * @var string  | 
            ||
| 12 | */  | 
            ||
| 13 | protected $_name;  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * Attachable constructor.  | 
            ||
| 17 | *  | 
            ||
| 18 | * @param string $key  | 
            ||
| 19 | * @param array $storage  | 
            ||
| 20 | */  | 
            ||
| 21 | 6 | protected function initializer(string $key, array $storage): void  | 
            |
| 22 |     { | 
            ||
| 23 | 6 | $this->_name = $key;  | 
            |
| 24 | 6 | $this->attached($storage);  | 
            |
| 25 | 6 | }  | 
            |
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * @param array $storage  | 
            ||
| 29 | * @return array  | 
            ||
| 30 | */  | 
            ||
| 31 | protected function filter(array $storage): array  | 
            ||
| 37 | }  | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * @param string $key  | 
            ||
| 41 | * @throws  | 
            ||
| 42 | */  | 
            ||
| 43 | 6 | protected function checkProperty(string $key): void  | 
            |
| 47 | }  | 
            ||
| 48 | 6 | }  | 
            |
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * @param array $storage  | 
            ||
| 52 | */  | 
            ||
| 53 | 6 | protected function attached(array $storage): void  | 
            |
| 61 |