| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class AttributesFactory implements AttributesFactoryInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The classes registry. |
||
| 14 | * |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | public static $registry = [ |
||
| 18 | 'attribute_factory' => AttributeFactory::class, |
||
| 19 | '*' => Attributes::class, |
||
| 20 | ]; |
||
| 21 | |||
| 22 | public static function build( |
||
| 23 | array $attributes = [] |
||
| 24 | ) { |
||
| 25 | 16 | return (new static())->getInstance($attributes); |
|
| 26 | } |
||
| 27 | |||
| 28 | 16 | public function getInstance( |
|
| 46 | 16 | } |
|
| 47 | } |
||
| 48 |