Completed
Push — develop ( f05cec...11f198 )
by Daniel
07:33
created

AbstractSubscriber::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Silverback\ApiComponentBundle\EventSubscriber\ApiPlatform;
4
5
use Psr\Container\ContainerInterface;
6
use Symfony\Component\DependencyInjection\ServiceSubscriberInterface;
7
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
8
9
abstract class AbstractSubscriber implements ServiceSubscriberInterface, EventSubscriberInterface
10
{
11
    protected $container;
12
13
    public function __construct(ContainerInterface $container)
14
    {
15
        $this->container = $container;
16
    }
17
18
    abstract public static function getSubscribedEvents(): array;
19
20
    abstract public static function getSubscribedServices(): array;
21
}
22