Completed
Push — master ( 289c61...45ac24 )
by Kirill
03:32
created

BaseExecutor::setContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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
    public function setDoctrine($doctrine)
23
    {
24
        $this->doctrine = $doctrine;
25
        return $this;
26
    }
27
    public function setContainer($container)
28
    {
29
        $this->container = $container;
30
        return $this;
31
    }
32
33
    /**
34
     * @return Container
35
     */
36
    public function getContainer()
37
    {
38
        return $this->container;
39
    }
40
41
    /**
42
     * @return Registry
43
     */
44
    public function getDoctrine()
45
    {
46
        return $this->doctrine;
47
    }
48
}
49