| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 6 | public static function create($attribute, $value) |
|
| 22 | { |
||
| 23 | 6 | $attributesType = self::getAllAttributeType(); |
|
| 24 | 6 | foreach ($attributesType as $attributeType) { |
|
| 25 | 6 | if ($attributeType->isMember($attribute)) { |
|
| 26 | 6 | return $attributeType->create($value); |
|
| 27 | } |
||
| 28 | 6 | } |
|
| 29 | |||
| 30 | 3 | return $value; |
|
| 31 | } |
||
| 32 | |||
| 48 |