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

BaseExecutor   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 35
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0

4 Methods

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