| Total Complexity | 8 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | trait FactoryResolverAwareTrait |
||
| 15 | { |
||
| 16 | private ?AbstractFactory $factory = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Syntax sugar to access the factory from static methods. |
||
| 20 | */ |
||
| 21 | public static function __callStatic(string $name, array $arguments): AbstractFactory |
||
| 28 | } |
||
| 29 | |||
| 30 | public function __call(string $name, array $arguments): AbstractFactory |
||
| 37 | } |
||
| 38 | |||
| 39 | private function doGetFactory(): AbstractFactory |
||
| 48 |