1 | <?php |
||
39 | class Operation implements OperationConfigurationInterface, ListenerAwareConfigurationInterface |
||
40 | { |
||
41 | |||
42 | /** |
||
43 | * Trait that provides CSV configuration functionality. |
||
44 | * |
||
45 | * @var \TechDivision\Import\Configuration\Jms\Configuration\ListenersTrait |
||
46 | */ |
||
47 | use ListenersTrait; |
||
48 | |||
49 | /** |
||
50 | * The execution context. |
||
51 | * |
||
52 | * @var \TechDivision\Import\Configuration\ExecutionContextConfigurationInterface |
||
53 | */ |
||
54 | protected $executionContext; |
||
55 | |||
56 | /** |
||
57 | * The operation's name. |
||
58 | * |
||
59 | * @var string |
||
60 | * @Type("string") |
||
61 | */ |
||
62 | protected $name; |
||
63 | |||
64 | /** |
||
65 | * ArrayCollection with the information of the configured plugins. |
||
66 | * |
||
67 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
68 | * @Type("ArrayCollection<TechDivision\Import\Configuration\Jms\Configuration\Plugin>") |
||
69 | */ |
||
70 | protected $plugins; |
||
71 | |||
72 | /** |
||
73 | * Initialize the operation with the passed name. |
||
74 | * |
||
75 | * @param string|null $name The operation name |
||
76 | */ |
||
77 | public function __construct($name = null) |
||
83 | |||
84 | /** |
||
85 | * Lifecycle callback that will be invoked after deserialization. |
||
86 | * |
||
87 | * @return void |
||
88 | * @PostDeserialize |
||
89 | */ |
||
90 | public function postDeserialize() |
||
98 | |||
99 | /** |
||
100 | * Query's whether or not the passed operation equals this instance. |
||
101 | * |
||
102 | * @param \TechDivision\Import\Configuration\OperationConfigurationInterface $operation The operation to query |
||
103 | * |
||
104 | * @return boolean TRUE if the operations are equal, else FALSE |
||
105 | */ |
||
106 | public function equals(OperationConfigurationInterface $operation) |
||
110 | |||
111 | /** |
||
112 | * Return's the operation's name. |
||
113 | * |
||
114 | * @return string The operation's class name |
||
115 | */ |
||
116 | public function getName() |
||
120 | |||
121 | /** |
||
122 | * Return's the ArrayCollection with the operation's plugins. |
||
123 | * |
||
124 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the operation's plugins |
||
125 | */ |
||
126 | public function getPlugins() |
||
130 | |||
131 | /** |
||
132 | * Set's the execution context configuration for the actualy plugin configuration. |
||
133 | * |
||
134 | * @param \TechDivision\Import\Configuration\ExecutionContextConfigurationInterface $executionContext The execution context to use |
||
135 | * |
||
136 | * @return void |
||
137 | */ |
||
138 | public function setExecutionContext(ExecutionContextConfigurationInterface $executionContext) |
||
142 | |||
143 | /** |
||
144 | * Return's the execution context configuration for the actualy plugin configuration. |
||
145 | * |
||
146 | * @return \TechDivision\Import\Configuration\ExecutionContextConfigurationInterface The execution context to use |
||
147 | */ |
||
148 | public function getExecutionContext() |
||
152 | |||
153 | /** |
||
154 | * String representation of the operation (the name). |
||
155 | * |
||
156 | * @return string The operation name |
||
157 | */ |
||
158 | public function __toString() |
||
162 | } |
||
163 |