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

AbstractSubscriber   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 12
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
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