1 | <?php |
||
35 | class Operation implements OperationConfigurationInterface |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * The operation's name. |
||
40 | * |
||
41 | * @var string |
||
42 | * @Type("string") |
||
43 | */ |
||
44 | protected $name; |
||
45 | |||
46 | /** |
||
47 | * ArrayCollection with the information of the configured plugins. |
||
48 | * |
||
49 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
50 | * @Type("ArrayCollection<TechDivision\Import\Cli\Configuration\Plugin>") |
||
51 | */ |
||
52 | protected $plugins; |
||
53 | |||
54 | /** |
||
55 | * Initialize the operation with the passed name. |
||
56 | * |
||
57 | * @param string|null $name The operation name |
||
58 | */ |
||
59 | public function __construct($name = null) |
||
65 | |||
66 | /** |
||
67 | * Query's whether or not the passed operation equals this instance. |
||
68 | * |
||
69 | * @param \TechDivision\Import\Configuration\OperationConfigurationInterface $operation The operation to query |
||
70 | * |
||
71 | * @return boolean TRUE if the operations are equal, else FALSE |
||
72 | */ |
||
73 | public function equals(OperationConfigurationInterface $operation) |
||
77 | |||
78 | /** |
||
79 | * Return's the operation's name. |
||
80 | * |
||
81 | * @return string The operation's class name |
||
82 | */ |
||
83 | public function getName() |
||
87 | |||
88 | /** |
||
89 | * Return's the ArrayCollection with the operation's plugins. |
||
90 | * |
||
91 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the operation's plugins |
||
92 | */ |
||
93 | public function getPlugins() |
||
94 | { |
||
95 | return $this->plugins; |
||
96 | } |
||
97 | |||
98 | /** |
||
99 | * String representation of the operation (the name). |
||
100 | * |
||
101 | * @return string The operation name |
||
102 | */ |
||
103 | public function __toString() |
||
107 | } |
||
108 |