| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 16 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 1 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 21 | * @return AttributeInterface[]  | 
            ||
| 22 | */  | 
            ||
| 23 | 309 | public static function createFromArray(array $attributesKeyValue): array  | 
            |
| 24 |     { | 
            ||
| 25 | 309 | $attributes = [];  | 
            |
| 26 | |||
| 27 | /** @var Closure|scalar|null $value */  | 
            ||
| 28 | 309 |         foreach ($attributesKeyValue as $name => $value) { | 
            |
| 29 | 309 |             if (is_int($name) && is_string($value)) { | 
            |
| 30 | 34 | $attributes[] = self::create($value);  | 
            |
| 31 | 34 | continue;  | 
            |
| 32 | }  | 
            ||
| 33 | 306 | Assert::string($name);  | 
            |
| 34 | 306 | $attributes[] = self::create($name, $value);  | 
            |
| 35 | }  | 
            ||
| 36 | 308 | return $attributes;  | 
            |
| 37 | }  | 
            ||
| 58 |