Passed
Push — master ( 109e7c...79a79c )
by Thomas Mauro
02:15
created

AbstractDoctrineMiddlewareFactory::__callStatic()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 3

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
cc 3
nc 2
nop 2
crap 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace TMV\Laminas\Messenger\Factory\Middleware;
6
7
use Psr\Container\ContainerInterface;
8
use Symfony\Component\Messenger\Middleware\MiddlewareInterface;
9
10
abstract class AbstractDoctrineMiddlewareFactory
11
{
12
    protected ?string $connectionName;
13
14
    public function __construct(string $connectionName = null)
15
    {
16
        $this->connectionName = $connectionName;
17
    }
18 4
19
    abstract public function __invoke(ContainerInterface $container): MiddlewareInterface;
20
}
21