Completed
Push — dev ( 141995...fca98e )
by Андрей
03:32
created

ExecutorController::runExecutorAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
/**
3
 * @link    https://github.com/nnx-framework/doctrine-fixture-module
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace Nnx\DoctrineFixtureModule\Entity;
7
8
use Nnx\DoctrineFixtureModule\Executor\FixtureExecutorManagerInterface;
9
use Nnx\DoctrineFixtureModule\Utils\ManagerRegistryProviderInterface;
10
use Zend\Mvc\Controller\AbstractConsoleController;
11
12
/**
13
 * Class ExecutorController
14
 *
15
 * @package Nnx\DoctrineFixtureModule\Entity
16
 */
17
class ExecutorController extends AbstractConsoleController
18
{
19
    /**
20
     * Провайдер для получения ManagerRegistry
21
     *
22
     * @var ManagerRegistryProviderInterface
23
     */
24
    protected $managerRegistryProvider;
25
26
    /**
27
     * Менеджер для получения Executor'ов
28
     *
29
     * @var FixtureExecutorManagerInterface
30
     */
31
    protected $fixtureExecutorManager;
32
33
    /**
34
     * ExecutorController constructor.
35
     *
36
     * @param ManagerRegistryProviderInterface $managerRegistryProvider
37
     * @param FixtureExecutorManagerInterface  $fixtureExecutorManager
38
     */
39
    public function __construct(ManagerRegistryProviderInterface $managerRegistryProvider, FixtureExecutorManagerInterface $fixtureExecutorManager)
40
    {
41
        $this->setManagerRegistryProvider($managerRegistryProvider);
42
        $this->setFixtureExecutorManager($fixtureExecutorManager);
43
    }
44
45
    /**
46
     *
47
     *
48
     */
49
    public function executeFixtureAction()
50
    {
51
    }
52
53
54
    /**
55
     *
56
     *
57
     */
58
    public function runExecutorAction()
59
    {
60
    }
61
62
    /**
63
     * Возвращает провайдер для получения ManagerRegistry
64
     *
65
     * @return ManagerRegistryProviderInterface
66
     */
67
    public function getManagerRegistryProvider()
68
    {
69
        return $this->managerRegistryProvider;
70
    }
71
72
    /**
73
     * Устанавливает провайдер для получения ManagerRegistry
74
     *
75
     * @param ManagerRegistryProviderInterface $managerRegistryProvider
76
     *
77
     * @return $this
78
     */
79
    public function setManagerRegistryProvider(ManagerRegistryProviderInterface $managerRegistryProvider)
80
    {
81
        $this->managerRegistryProvider = $managerRegistryProvider;
82
83
        return $this;
84
    }
85
86
    /**
87
     * Возвращает менеджер для получения Executor'ов
88
     *
89
     * @return FixtureExecutorManagerInterface
90
     */
91
    public function getFixtureExecutorManager()
92
    {
93
        return $this->fixtureExecutorManager;
94
    }
95
96
    /**
97
     * Устанавливает менеджер для получения Executor'ов
98
     *
99
     * @param FixtureExecutorManagerInterface $fixtureExecutorManager
100
     *
101
     * @return $this
102
     */
103
    public function setFixtureExecutorManager($fixtureExecutorManager)
104
    {
105
        $this->fixtureExecutorManager = $fixtureExecutorManager;
106
107
        return $this;
108
    }
109
}
110