| Conditions | 6 | 
| Paths | 4 | 
| Total Lines | 13 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 42 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 30 | protected function attached(array $storage): void  | 
            ||
| 31 |     { | 
            ||
| 32 |         foreach ($storage as $key => $value) { | 
            ||
| 33 |             if ($key{0} === '_' || !\property_exists($this, $key)) { | 
            ||
| 34 |                 throw new Runtime(\sprintf('The key `%s` is not registered', $key)); | 
            ||
| 35 | }  | 
            ||
| 36 | |||
| 37 |             if (null === $value || $key{0} === '@') { | 
            ||
| 38 | // skip  | 
            ||
| 39 | continue;  | 
            ||
| 40 | }  | 
            ||
| 41 | |||
| 42 | $this->$key = $value;  | 
            ||
| 43 | }  | 
            ||
| 47 |