Completed
Push — master ( 76844d...a0c467 )
by Tomáš
02:57
created

ContainerAwareController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
rs 10
1
<?php
2
3
namespace Symplify\ControllerAutowire\Tests\CompleteTestSource\Scan;
4
5
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
6
use Symfony\Component\DependencyInjection\ContainerInterface;
7
8
final class ContainerAwareController implements ContainerAwareInterface
9
{
10
    /**
11
     * @var ContainerInterface
12
     */
13
    private $container;
14
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function setContainer(ContainerInterface $container = null)
19
    {
20
        $this->container = $container;
21
    }
22
23
    /**
24
     * @return ContainerInterface
25
     */
26
    public function getContainer()
27
    {
28
        return $this->container;
29
    }
30
}
31