1 | <?php |
||
37 | class Operation implements OperationConfigurationInterface |
||
38 | { |
||
39 | |||
40 | /** |
||
41 | * The operation's name. |
||
42 | * |
||
43 | * @var string |
||
44 | * @Type("string") |
||
45 | */ |
||
46 | protected $name; |
||
47 | |||
48 | /** |
||
49 | * ArrayCollection with the information of the configured plugins. |
||
50 | * |
||
51 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
52 | * @Type("ArrayCollection<TechDivision\Import\Configuration\Jms\Configuration\Plugin>") |
||
53 | */ |
||
54 | protected $plugins; |
||
55 | |||
56 | /** |
||
57 | * Initialize the operation with the passed name. |
||
58 | * |
||
59 | * @param string|null $name The operation name |
||
60 | */ |
||
61 | public function __construct($name = null) |
||
67 | |||
68 | /** |
||
69 | * Lifecycle callback that will be invoked after deserialization. |
||
70 | * |
||
71 | * @return void |
||
72 | * @PostDeserialize |
||
73 | */ |
||
74 | public function postDeserialize() |
||
82 | |||
83 | /** |
||
84 | * Query's whether or not the passed operation equals this instance. |
||
85 | * |
||
86 | * @param \TechDivision\Import\Configuration\OperationConfigurationInterface $operation The operation to query |
||
87 | * |
||
88 | * @return boolean TRUE if the operations are equal, else FALSE |
||
89 | */ |
||
90 | public function equals(OperationConfigurationInterface $operation) |
||
94 | |||
95 | /** |
||
96 | * Return's the operation's name. |
||
97 | * |
||
98 | * @return string The operation's class name |
||
99 | */ |
||
100 | public function getName() |
||
104 | |||
105 | /** |
||
106 | * Return's the ArrayCollection with the operation's plugins. |
||
107 | * |
||
108 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the operation's plugins |
||
109 | */ |
||
110 | public function getPlugins() |
||
114 | |||
115 | /** |
||
116 | * String representation of the operation (the name). |
||
117 | * |
||
118 | * @return string The operation name |
||
119 | */ |
||
120 | public function __toString() |
||
124 | } |
||
125 |