Completed
Push — master ( ea3c7e...ca6541 )
by Kirill
04:42
created

BaseExecutor::setDoctrine()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: chrl
5
 * Date: 04/03/17
6
 * Time: 20:57
7
 */
8
9
namespace AppBundle\Action\Executor;
10
11
use Doctrine\Bundle\DoctrineBundle\Registry;
12
use Symfony\Component\DependencyInjection\Container;
13
14
class BaseExecutor implements ExecutorInterface
15
{
16
    /** @var  Registry */
17
    public $doctrine;
18
19
    /** @var  Container */
20
    public $container;
21
22
    /** @var  array */
23
    public $parameters;
24
25 1
    public function setDoctrine($doctrine)
26
    {
27 1
        $this->doctrine = $doctrine;
28 1
        return $this;
29
    }
30
    public function setContainer($container)
31
    {
32
        $this->container = $container;
33
        return $this;
34
    }
35
36 1
    public function setParameters($parameters)
37
    {
38 1
        $this->parameters = $parameters;
39 1
        return $this;
40
    }
41
42
    /**
43
     * @return Container
44
     */
45
    public function getContainer()
46
    {
47
        return $this->container;
48
    }
49
50
    /**
51
     * @return Registry
52
     */
53
    public function getDoctrine()
54
    {
55
        return $this->doctrine;
56
    }
57
}
58