1 | <?php |
||
43 | class Plugin implements PluginConfigurationInterface, ListenerAwareConfigurationInterface |
||
44 | { |
||
45 | |||
46 | /** |
||
47 | * The trait that provides parameter configuration functionality. |
||
48 | * |
||
49 | * @var \TechDivision\Import\Configuration\Jms\Configuration\ParamsTrait |
||
50 | */ |
||
51 | use ParamsTrait; |
||
52 | |||
53 | /** |
||
54 | * Trait that provides CSV configuration functionality. |
||
55 | * |
||
56 | * @var \TechDivision\Import\Configuration\Jms\Configuration\ListenersTrait |
||
57 | */ |
||
58 | use ListenersTrait; |
||
59 | |||
60 | /** |
||
61 | * The main configuration. |
||
62 | * |
||
63 | * @var string |
||
64 | */ |
||
65 | protected $configuration; |
||
66 | |||
67 | /** |
||
68 | * The plugin's unique DI identifier. |
||
69 | * |
||
70 | * @var string |
||
71 | * @Type("string") |
||
72 | * @SerializedName("id") |
||
73 | */ |
||
74 | protected $id; |
||
75 | |||
76 | /** |
||
77 | * The plugin's name. |
||
78 | * |
||
79 | * @var string |
||
80 | * @Type("string") |
||
81 | * @SerializedName("name") |
||
82 | */ |
||
83 | protected $name; |
||
84 | |||
85 | /** |
||
86 | * ArrayCollection with the information of the configured subjects. |
||
87 | * |
||
88 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
89 | * @Type("ArrayCollection<TechDivision\Import\Configuration\Jms\Configuration\Subject>") |
||
90 | */ |
||
91 | protected $subjects; |
||
92 | |||
93 | /** |
||
94 | * The swift mailer configuration to use. |
||
95 | * |
||
96 | * @var \TechDivision\Import\Configuration\Jms\Configuration\SwiftMailer |
||
97 | * @Type("TechDivision\Import\Configuration\Jms\Configuration\SwiftMailer") |
||
98 | * @SerializedName("swift-mailer") |
||
99 | */ |
||
100 | protected $swiftMailer; |
||
101 | |||
102 | /** |
||
103 | * The import adapter configuration instance. |
||
104 | * |
||
105 | * @var \TechDivision\Import\Configuration\Subject\ImportAdapterConfigurationInterface |
||
106 | * @Type("TechDivision\Import\Configuration\Jms\Configuration\Subject\ImportAdapter") |
||
107 | * @SerializedName("import-adapter") |
||
108 | */ |
||
109 | protected $importAdapter; |
||
110 | |||
111 | /** |
||
112 | * The export adapter configuration instance. |
||
113 | * |
||
114 | * @var \TechDivision\Import\Configuration\Subject\ExportAdapterConfigurationInterface |
||
115 | * @Type("TechDivision\Import\Configuration\Jms\Configuration\Subject\ExportAdapter") |
||
116 | * @SerializedName("export-adapter") |
||
117 | */ |
||
118 | protected $exportAdapter; |
||
119 | |||
120 | /** |
||
121 | * Lifecycle callback that will be invoked after deserialization. |
||
122 | * |
||
123 | * @return void |
||
124 | * @PostDeserialize |
||
125 | */ |
||
126 | public function postDeserialize() |
||
144 | |||
145 | /** |
||
146 | * Set's the reference to the configuration instance. |
||
147 | * |
||
148 | * @param \TechDivision\Import\ConfigurationInterface $configuration The configuration instance |
||
149 | * |
||
150 | * @return void |
||
151 | */ |
||
152 | public function setConfiguration(ConfigurationInterface $configuration) |
||
156 | |||
157 | /** |
||
158 | * Return's the reference to the configuration instance. |
||
159 | * |
||
160 | * @return \TechDivision\Import\ConfigurationInterface The configuration instance |
||
161 | */ |
||
162 | public function getConfiguration() |
||
166 | |||
167 | /** |
||
168 | * Return's the plugin's unique DI identifier. |
||
169 | * |
||
170 | * @return string The plugin's unique DI identifier |
||
171 | */ |
||
172 | public function getId() |
||
176 | |||
177 | /** |
||
178 | * Return's the plugin's name or the ID, if the name is NOT set. |
||
179 | * |
||
180 | * @return string The plugin's name |
||
181 | * @see \TechDivision\Import\Configuration\PluginConfigurationInterface::getId() |
||
182 | */ |
||
183 | public function getName() |
||
187 | |||
188 | /** |
||
189 | * Return's the ArrayCollection with the operation's subjects. |
||
190 | * |
||
191 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the operation's subjects |
||
192 | */ |
||
193 | public function getSubjects() |
||
210 | |||
211 | /** |
||
212 | * Return's the swift mailer configuration to use. |
||
213 | * |
||
214 | * @return \TechDivision\Import\Configuration\Jms\Configuration\SwiftMailer The swift mailer configuration to use |
||
215 | */ |
||
216 | public function getSwiftMailer() |
||
220 | |||
221 | /** |
||
222 | * Return's the import adapter configuration instance. |
||
223 | * |
||
224 | * @return \TechDivision\Import\Configuration\Subject\ImportAdapterConfigurationInterface The import adapter configuration instance |
||
225 | */ |
||
226 | public function getImportAdapter() |
||
230 | |||
231 | /** |
||
232 | * Return's the export adapter configuration instance. |
||
233 | * |
||
234 | * @return \TechDivision\Import\Configuration\Subject\ExportAdapterConfigurationInterface The export adapter configuration instance |
||
235 | */ |
||
236 | public function getExportAdapter() |
||
240 | } |
||
241 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..