Completed
Branch index_loading_feature (a31c33)
by Alessandro
02:52
created

AbstractContainerAwareFixture::setContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Facile\MongoDbBundle\Fixtures;
6
7
use Symfony\Component\DependencyInjection\ContainerInterface;
8
9
/**
10
 * Class AbstractContainerAwareFixture.
11
 */
12
abstract class AbstractContainerAwareFixture implements MongoFixtureInterface
13
{
14
    /** @var ContainerInterface */
15
    private $container;
16
17
    /**
18
     * @param ContainerInterface $container
19
     */
20
    public function setContainer(ContainerInterface $container)
21
    {
22
        $this->container = $container;
23
    }
24
25
    /**
26
     * @return ContainerInterface
27
     */
28
    protected function getContainer(): ContainerInterface
29
    {
30
        return $this->container;
31
    }
32
}
33