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

AbstractContainerAwareFixture   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 21
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setContainer() 0 4 1
A getContainer() 0 4 1
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