| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | abstract class AbstractDoctrineMiddlewareFactory |
||
| 14 | { |
||
| 15 | /** @var string */ |
||
| 16 | protected $connectionName; |
||
| 17 | |||
| 18 | 4 | public function __construct(string $connectionName = 'orm_default') |
|
| 19 | { |
||
| 20 | 4 | $this->connectionName = $connectionName; |
|
| 21 | 4 | } |
|
| 22 | |||
| 23 | abstract public function __invoke(ContainerInterface $container): MiddlewareInterface; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $name |
||
| 27 | * @param array $arguments |
||
| 28 | * |
||
| 29 | * @return MiddlewareInterface |
||
| 30 | */ |
||
| 31 | 8 | public static function __callStatic(string $name, array $arguments): MiddlewareInterface |
|
| 41 | } |
||
| 42 | } |
||
| 43 |