| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class AttributeFactory implements AttributeFactoryInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * The classes registry. |
||
| 16 | * |
||
| 17 | * @var array<string, string> |
||
| 18 | */ |
||
| 19 | public static $registry = [ |
||
| 20 | '*' => Attribute::class, |
||
| 21 | ]; |
||
| 22 | 4 | ||
| 23 | public static function build(string $name, $value = null): AttributeInterface |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getInstance(string $name, $value = null): AttributeInterface |
||
| 52 |