Complex classes like Configuration often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Configuration, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
45 | class Configuration implements ConfigurationInterface |
||
46 | { |
||
47 | |||
48 | /** |
||
49 | * The default PID filename to use. |
||
50 | * |
||
51 | * @var string |
||
52 | */ |
||
53 | const PID_FILENAME = 'importer.pid'; |
||
54 | |||
55 | /** |
||
56 | * Mapping for boolean values passed on the console. |
||
57 | * |
||
58 | * @var array |
||
59 | * @Exclude |
||
60 | */ |
||
61 | protected $booleanMapping = array( |
||
62 | 'true' => true, |
||
63 | 'false' => false, |
||
64 | '1' => true, |
||
65 | '0' => false, |
||
66 | 'on' => true, |
||
67 | 'off' => false |
||
68 | ); |
||
69 | |||
70 | /** |
||
71 | * The application's unique DI identifier. |
||
72 | * |
||
73 | * @var string |
||
74 | * @Type("string") |
||
75 | * @SerializedName("id") |
||
76 | */ |
||
77 | protected $id; |
||
78 | |||
79 | /** |
||
80 | * The system name to use. |
||
81 | * |
||
82 | * @var string |
||
83 | * @Type("string") |
||
84 | * @SerializedName("system-name") |
||
85 | */ |
||
86 | protected $systemName; |
||
87 | |||
88 | /** |
||
89 | * The operation name to use. |
||
90 | * |
||
91 | * @var string |
||
92 | * @Type("string") |
||
93 | * @SerializedName("operation-name") |
||
94 | */ |
||
95 | protected $operationName; |
||
96 | |||
97 | /** |
||
98 | * The entity type code to use. |
||
99 | * |
||
100 | * @var string |
||
101 | * @Type("string") |
||
102 | * @SerializedName("entity-type-code") |
||
103 | */ |
||
104 | protected $entityTypeCode; |
||
105 | |||
106 | /** |
||
107 | * The Magento installation directory. |
||
108 | * |
||
109 | * @var string |
||
110 | * @Type("string") |
||
111 | * @SerializedName("installation-dir") |
||
112 | */ |
||
113 | protected $installationDir; |
||
114 | |||
115 | /** |
||
116 | * The source directory that has to be watched for new files. |
||
117 | * |
||
118 | * @var string |
||
119 | * @Type("string") |
||
120 | * @SerializedName("source-dir") |
||
121 | */ |
||
122 | protected $sourceDir; |
||
123 | |||
124 | /** |
||
125 | * The target directory with the files that has been imported. |
||
126 | * |
||
127 | * @var string |
||
128 | * @Type("string") |
||
129 | * @SerializedName("target-dir") |
||
130 | */ |
||
131 | protected $targetDir; |
||
132 | |||
133 | /** |
||
134 | * The Magento edition, EE or CE. |
||
135 | * |
||
136 | * @var string |
||
137 | * @Type("string") |
||
138 | * @SerializedName("magento-edition") |
||
139 | */ |
||
140 | protected $magentoEdition = 'CE'; |
||
141 | |||
142 | /** |
||
143 | * The Magento version, e. g. 2.1.0. |
||
144 | * |
||
145 | * @var string |
||
146 | * @Type("string") |
||
147 | * @SerializedName("magento-version") |
||
148 | */ |
||
149 | protected $magentoVersion = '2.1.2'; |
||
150 | |||
151 | /** |
||
152 | * ArrayCollection with the information of the configured databases. |
||
153 | * |
||
154 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
155 | * @Type("ArrayCollection<TechDivision\Import\Configuration\Jms\Configuration\Database>") |
||
156 | */ |
||
157 | protected $databases; |
||
158 | |||
159 | /** |
||
160 | * ArrayCollection with the information of the configured loggers. |
||
161 | * |
||
162 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
163 | * @Type("ArrayCollection<TechDivision\Import\Configuration\Jms\Configuration\Logger>") |
||
164 | */ |
||
165 | protected $loggers; |
||
166 | |||
167 | /** |
||
168 | * ArrayCollection with the information of the configured operations. |
||
169 | * |
||
170 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
171 | * @Type("ArrayCollection<TechDivision\Import\Configuration\Jms\Configuration\Operation>") |
||
172 | */ |
||
173 | protected $operations; |
||
174 | |||
175 | /** |
||
176 | * The source date format to use in the subject. |
||
177 | * |
||
178 | * @var string |
||
179 | * @Type("string") |
||
180 | * @SerializedName("source-date-format") |
||
181 | */ |
||
182 | protected $sourceDateFormat = 'n/d/y, g:i A'; |
||
183 | |||
184 | /** |
||
185 | * The subject's multiple field delimiter character for fields with multiple values, defaults to (,). |
||
186 | * |
||
187 | * @var string |
||
188 | * @Type("string") |
||
189 | * @SerializedName("multiple-field-delimiter") |
||
190 | */ |
||
191 | protected $multipleFieldDelimiter = ','; |
||
192 | |||
193 | /** |
||
194 | * The subject's multiple value delimiter character for fields with multiple values, defaults to (|). |
||
195 | * |
||
196 | * @var string |
||
197 | * @Type("string") |
||
198 | * @SerializedName("multiple-value-delimiter") |
||
199 | */ |
||
200 | protected $multipleValueDelimiter = '|'; |
||
201 | |||
202 | /** |
||
203 | * The subject's delimiter character for CSV files. |
||
204 | * |
||
205 | * @var string |
||
206 | * @Type("string") |
||
207 | */ |
||
208 | protected $delimiter; |
||
209 | |||
210 | /** |
||
211 | * The subject's enclosure character for CSV files. |
||
212 | * |
||
213 | * @var string |
||
214 | * @Type("string") |
||
215 | */ |
||
216 | protected $enclosure; |
||
217 | |||
218 | /** |
||
219 | * The subject's escape character for CSV files. |
||
220 | * |
||
221 | * @var string |
||
222 | * @Type("string") |
||
223 | */ |
||
224 | protected $escape; |
||
225 | |||
226 | /** |
||
227 | * The subject's source charset for the CSV file. |
||
228 | * |
||
229 | * @var string |
||
230 | * @Type("string") |
||
231 | * @SerializedName("from-charset") |
||
232 | */ |
||
233 | protected $fromCharset; |
||
234 | |||
235 | /** |
||
236 | * The subject's target charset for a CSV file. |
||
237 | * |
||
238 | * @var string |
||
239 | * @Type("string") |
||
240 | * @SerializedName("to-charset") |
||
241 | */ |
||
242 | protected $toCharset; |
||
243 | |||
244 | /** |
||
245 | * The subject's file mode for a CSV target file. |
||
246 | * |
||
247 | * @var string |
||
248 | * @Type("string") |
||
249 | * @SerializedName("file-mode") |
||
250 | */ |
||
251 | protected $fileMode; |
||
252 | |||
253 | /** |
||
254 | * The flag to signal that the subject has to use the strict mode or not. |
||
255 | * |
||
256 | * @var boolean |
||
257 | * @Type("boolean") |
||
258 | * @SerializedName("strict-mode") |
||
259 | */ |
||
260 | protected $strictMode; |
||
261 | |||
262 | /** |
||
263 | * The flag whether or not the import artefacts have to be archived. |
||
264 | * |
||
265 | * @var boolean |
||
266 | * @Type("boolean") |
||
267 | * @SerializedName("archive-artefacts") |
||
268 | */ |
||
269 | protected $archiveArtefacts; |
||
270 | |||
271 | /** |
||
272 | * The directory where the archives will be stored. |
||
273 | * |
||
274 | * @var string |
||
275 | * @Type("string") |
||
276 | * @SerializedName("archive-dir") |
||
277 | */ |
||
278 | protected $archiveDir; |
||
279 | |||
280 | /** |
||
281 | * The flag to signal that the subject has to use the debug mode or not. |
||
282 | * |
||
283 | * @var boolean |
||
284 | * @Type("boolean") |
||
285 | * @SerializedName("debug-mode") |
||
286 | */ |
||
287 | protected $debugMode = false; |
||
288 | |||
289 | /** |
||
290 | * The log level to use (see Monolog documentation). |
||
291 | * |
||
292 | * @var string |
||
293 | * @Type("string") |
||
294 | * @SerializedName("log-level") |
||
295 | */ |
||
296 | protected $logLevel = LogLevel::INFO; |
||
297 | |||
298 | /** |
||
299 | * The explicit DB ID to use. |
||
300 | * |
||
301 | * @var string |
||
302 | * @Type("string") |
||
303 | * @SerializedName("use-db-id") |
||
304 | */ |
||
305 | protected $useDbId; |
||
306 | |||
307 | /** |
||
308 | * The explicit PID filename to use. |
||
309 | * |
||
310 | * @var string |
||
311 | * @Type("string") |
||
312 | * @SerializedName("pid-filename") |
||
313 | */ |
||
314 | protected $pidFilename; |
||
315 | |||
316 | /** |
||
317 | * The collection with the paths to additional vendor directories. |
||
318 | * |
||
319 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
320 | * @Type("ArrayCollection<TechDivision\Import\Configuration\Jms\Configuration\VendorDir>") |
||
321 | * @SerializedName("additional-vendor-dirs") |
||
322 | */ |
||
323 | protected $additionalVendorDirs; |
||
324 | |||
325 | /** |
||
326 | * The array with the Magento Edition specific extension libraries. |
||
327 | * |
||
328 | * @var array |
||
329 | * @Type("array") |
||
330 | * @SerializedName("extension-libraries") |
||
331 | */ |
||
332 | protected $extensionLibraries = array(); |
||
333 | |||
334 | /** |
||
335 | * The array with the custom header mappings. |
||
336 | * |
||
337 | * @var array |
||
338 | * @Type("array") |
||
339 | * @SerializedName("header-mappings") |
||
340 | */ |
||
341 | protected $headerMappings = array(); |
||
342 | |||
343 | /** |
||
344 | * The array with the custom image types. |
||
345 | * |
||
346 | * @var array |
||
347 | * @Type("array") |
||
348 | * @SerializedName("image-types") |
||
349 | */ |
||
350 | protected $imageTypes = array(); |
||
351 | |||
352 | /** |
||
353 | * ArrayCollection with the listeners. |
||
354 | * |
||
355 | * @var array |
||
356 | * @Type("array") |
||
357 | */ |
||
358 | protected $listeners = array(); |
||
359 | |||
360 | /** |
||
361 | * The flag to signal that the should be wrapped within a single transation or not. |
||
362 | * |
||
363 | * @var boolean |
||
364 | * @Type("boolean") |
||
365 | * @SerializedName("single-transaction") |
||
366 | */ |
||
367 | protected $singleTransaction = false; |
||
368 | |||
369 | /** |
||
370 | * Return's the array with the plugins of the operation to use. |
||
371 | * |
||
372 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the plugins |
||
373 | * @throws \Exception Is thrown, if no plugins are available for the actual operation |
||
374 | */ |
||
375 | public function getPlugins() |
||
389 | |||
390 | /** |
||
391 | * Map's the passed value to a boolean. |
||
392 | * |
||
393 | * @param string $value The value to map |
||
394 | * |
||
395 | * @return boolean The mapped value |
||
396 | * @throws \Exception Is thrown, if the value can't be mapped |
||
397 | */ |
||
398 | public function mapBoolean($value) |
||
409 | |||
410 | /** |
||
411 | * Return's the operation, initialize from the actual operation name. |
||
412 | * |
||
413 | * @return \TechDivision\Import\Configuration\OperationConfigurationInterface The operation instance |
||
414 | */ |
||
415 | protected function getOperation() |
||
419 | |||
420 | /** |
||
421 | * Return's the application's unique DI identifier. |
||
422 | * |
||
423 | * @return string The application's unique DI identifier |
||
424 | */ |
||
425 | public function getId() |
||
429 | |||
430 | /** |
||
431 | * Return's the operation name that has to be used. |
||
432 | * |
||
433 | * @param string $operationName The operation name that has to be used |
||
434 | * |
||
435 | * @return void |
||
436 | */ |
||
437 | public function setOperationName($operationName) |
||
441 | |||
442 | /** |
||
443 | * Return's the operation name that has to be used. |
||
444 | * |
||
445 | * @return string The operation name that has to be used |
||
446 | */ |
||
447 | public function getOperationName() |
||
451 | |||
452 | /** |
||
453 | * Set's the Magento installation directory. |
||
454 | * |
||
455 | * @param string $installationDir The Magento installation directory |
||
456 | * |
||
457 | * @return void |
||
458 | */ |
||
459 | public function setInstallationDir($installationDir) |
||
463 | |||
464 | /** |
||
465 | * Return's the Magento installation directory. |
||
466 | * |
||
467 | * @return string The Magento installation directory |
||
468 | */ |
||
469 | public function getInstallationDir() |
||
473 | |||
474 | /** |
||
475 | * Set's the source directory that has to be watched for new files. |
||
476 | * |
||
477 | * @param string $sourceDir The source directory |
||
478 | * |
||
479 | * @return void |
||
480 | */ |
||
481 | public function setSourceDir($sourceDir) |
||
485 | |||
486 | /** |
||
487 | * Return's the source directory that has to be watched for new files. |
||
488 | * |
||
489 | * @return string The source directory |
||
490 | */ |
||
491 | public function getSourceDir() |
||
495 | |||
496 | /** |
||
497 | * Set's the target directory with the files that has been imported. |
||
498 | * |
||
499 | * @param string $targetDir The target directory |
||
500 | * |
||
501 | * @return void |
||
502 | */ |
||
503 | public function setTargetDir($targetDir) |
||
507 | |||
508 | /** |
||
509 | * Return's the target directory with the files that has been imported. |
||
510 | * |
||
511 | * @return string The target directory |
||
512 | */ |
||
513 | public function getTargetDir() |
||
517 | |||
518 | /** |
||
519 | * Set's the Magento edition, EE or CE. |
||
520 | * |
||
521 | * @param string $magentoEdition The Magento edition |
||
522 | * |
||
523 | * @return void |
||
524 | */ |
||
525 | public function setMagentoEdition($magentoEdition) |
||
529 | |||
530 | /** |
||
531 | * Return's the Magento edition, EE or CE. |
||
532 | * |
||
533 | * @return string The Magento edition |
||
534 | */ |
||
535 | public function getMagentoEdition() |
||
539 | |||
540 | /** |
||
541 | * Return's the Magento version, e. g. 2.1.0. |
||
542 | * |
||
543 | * @param string $magentoVersion The Magento version |
||
544 | * |
||
545 | * @return void |
||
546 | */ |
||
547 | public function setMagentoVersion($magentoVersion) |
||
551 | |||
552 | /** |
||
553 | * Return's the Magento version, e. g. 2.1.0. |
||
554 | * |
||
555 | * @return string The Magento version |
||
556 | */ |
||
557 | public function getMagentoVersion() |
||
561 | |||
562 | /** |
||
563 | * Return's the subject's source date format to use. |
||
564 | * |
||
565 | * @return string The source date format |
||
566 | */ |
||
567 | public function getSourceDateFormat() |
||
571 | |||
572 | /** |
||
573 | * Set's the subject's source date format to use. |
||
574 | * |
||
575 | * @param string $sourceDateFormat The source date format |
||
576 | * |
||
577 | * @return void |
||
578 | */ |
||
579 | public function setSourceDateFormat($sourceDateFormat) |
||
583 | |||
584 | /** |
||
585 | * Return's the entity type code to be used. |
||
586 | * |
||
587 | * @return string The entity type code to be used |
||
588 | */ |
||
589 | public function getEntityTypeCode() |
||
593 | |||
594 | /** |
||
595 | * Set's the entity type code to be used. |
||
596 | * |
||
597 | * @param string $entityTypeCode The entity type code |
||
598 | * |
||
599 | * @return void |
||
600 | */ |
||
601 | public function setEntityTypeCode($entityTypeCode) |
||
605 | |||
606 | /** |
||
607 | * Return's the multiple field delimiter character to use, default value is comma (,). |
||
608 | * |
||
609 | * @return string The multiple field delimiter character |
||
610 | */ |
||
611 | public function getMultipleFieldDelimiter() |
||
615 | |||
616 | /** |
||
617 | * Return's the multiple value delimiter character to use, default value is comma (|). |
||
618 | * |
||
619 | * @return string The multiple value delimiter character |
||
620 | */ |
||
621 | public function getMultipleValueDelimiter() |
||
625 | |||
626 | /** |
||
627 | * Return's the delimiter character to use, default value is comma (,). |
||
628 | * |
||
629 | * @return string The delimiter character |
||
630 | */ |
||
631 | public function getDelimiter() |
||
635 | |||
636 | /** |
||
637 | * The enclosure character to use, default value is double quotation ("). |
||
638 | * |
||
639 | * @return string The enclosure character |
||
640 | */ |
||
641 | public function getEnclosure() |
||
645 | |||
646 | /** |
||
647 | * The escape character to use, default value is backslash (\). |
||
648 | * |
||
649 | * @return string The escape character |
||
650 | */ |
||
651 | public function getEscape() |
||
655 | |||
656 | /** |
||
657 | * The file encoding of the CSV source file, default value is UTF-8. |
||
658 | * |
||
659 | * @return string The charset used by the CSV source file |
||
660 | */ |
||
661 | public function getFromCharset() |
||
665 | |||
666 | /** |
||
667 | * The file encoding of the CSV targetfile, default value is UTF-8. |
||
668 | * |
||
669 | * @return string The charset used by the CSV target file |
||
670 | */ |
||
671 | public function getToCharset() |
||
675 | |||
676 | /** |
||
677 | * The file mode of the CSV target file, either one of write or append, default is write. |
||
678 | * |
||
679 | * @return string The file mode of the CSV target file |
||
680 | */ |
||
681 | public function getFileMode() |
||
685 | |||
686 | /** |
||
687 | * Queries whether or not strict mode is enabled or not, default is TRUE. |
||
688 | * |
||
689 | * @return boolean TRUE if strict mode is enabled, else FALSE |
||
690 | */ |
||
691 | public function isStrictMode() |
||
695 | |||
696 | /** |
||
697 | * Remove's all configured database configuration. |
||
698 | * |
||
699 | * @return void |
||
700 | */ |
||
701 | public function clearDatabases() |
||
705 | |||
706 | /** |
||
707 | * Add's the passed database configuration. |
||
708 | * |
||
709 | * @param \TechDivision\Import\Configuration\DatabaseConfigurationInterface $database The database configuration |
||
710 | * |
||
711 | * @return void |
||
712 | */ |
||
713 | public function addDatabase(DatabaseConfigurationInterface $database) |
||
717 | |||
718 | /** |
||
719 | * Return's the number database configurations. |
||
720 | * |
||
721 | * @return integer The number of database configurations |
||
722 | */ |
||
723 | public function countDatabases() |
||
727 | |||
728 | /** |
||
729 | * Return's the database configuration. |
||
730 | * |
||
731 | * If an explicit DB ID is specified, the method tries to return the database with this ID. If |
||
732 | * the database configuration is NOT available, an execption is thrown. |
||
733 | * |
||
734 | * If no explicit DB ID is specified, the method tries to return the default database configuration, |
||
735 | * if not available the first one. |
||
736 | * |
||
737 | * @return \TechDivision\Import\Configuration\Jms\Configuration\Database The database configuration |
||
738 | * @throws \Exception Is thrown, if no database configuration is available |
||
739 | */ |
||
740 | public function getDatabase() |
||
773 | |||
774 | /** |
||
775 | * Return's the ArrayCollection with the configured operations. |
||
776 | * |
||
777 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the operations |
||
778 | */ |
||
779 | public function getOperations() |
||
783 | |||
784 | /** |
||
785 | * Return's the ArrayCollection with the configured loggers. |
||
786 | * |
||
787 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the loggers |
||
788 | */ |
||
789 | public function getLoggers() |
||
793 | |||
794 | /** |
||
795 | * Set's the flag that import artefacts have to be archived or not. |
||
796 | * |
||
797 | * @param boolean $archiveArtefacts TRUE if artefacts have to be archived, else FALSE |
||
798 | * |
||
799 | * @return void |
||
800 | */ |
||
801 | public function setArchiveArtefacts($archiveArtefacts) |
||
805 | |||
806 | /** |
||
807 | * Return's the TRUE if the import artefacts have to be archived. |
||
808 | * |
||
809 | * @return boolean TRUE if the import artefacts have to be archived |
||
810 | */ |
||
811 | public function haveArchiveArtefacts() |
||
815 | |||
816 | /** |
||
817 | * The directory where the archives will be stored. |
||
818 | * |
||
819 | * @param string $archiveDir The archive directory |
||
820 | * |
||
821 | * @return void |
||
822 | */ |
||
823 | public function setArchiveDir($archiveDir) |
||
827 | |||
828 | /** |
||
829 | * The directory where the archives will be stored. |
||
830 | * |
||
831 | * @return string The archive directory |
||
832 | */ |
||
833 | public function getArchiveDir() |
||
837 | |||
838 | /** |
||
839 | * Set's the debug mode. |
||
840 | * |
||
841 | * @param boolean $debugMode TRUE if debug mode is enabled, else FALSE |
||
842 | * |
||
843 | * @return void |
||
844 | */ |
||
845 | public function setDebugMode($debugMode) |
||
849 | |||
850 | /** |
||
851 | * Queries whether or not debug mode is enabled or not, default is TRUE. |
||
852 | * |
||
853 | * @return boolean TRUE if debug mode is enabled, else FALSE |
||
854 | */ |
||
855 | public function isDebugMode() |
||
859 | |||
860 | /** |
||
861 | * Set's the log level to use. |
||
862 | * |
||
863 | * @param string $logLevel The log level to use |
||
864 | * |
||
865 | * @return void |
||
866 | */ |
||
867 | public function setLogLevel($logLevel) |
||
871 | |||
872 | /** |
||
873 | * Return's the log level to use. |
||
874 | * |
||
875 | * @return string The log level to use |
||
876 | */ |
||
877 | public function getLogLevel() |
||
881 | |||
882 | /** |
||
883 | * Set's the explicit DB ID to use. |
||
884 | * |
||
885 | * @param string $useDbId The explicit DB ID to use |
||
886 | * |
||
887 | * @return void |
||
888 | */ |
||
889 | public function setUseDbId($useDbId) |
||
893 | |||
894 | /** |
||
895 | * Return's the explicit DB ID to use. |
||
896 | * |
||
897 | * @return string The explicit DB ID to use |
||
898 | */ |
||
899 | public function getUseDbId() |
||
903 | |||
904 | /** |
||
905 | * Set's the PID filename to use. |
||
906 | * |
||
907 | * @param string $pidFilename The PID filename to use |
||
908 | * |
||
909 | * @return void |
||
910 | */ |
||
911 | public function setPidFilename($pidFilename) |
||
915 | |||
916 | /** |
||
917 | * Return's the PID filename to use. |
||
918 | * |
||
919 | * @return string The PID filename to use |
||
920 | */ |
||
921 | public function getPidFilename() |
||
925 | |||
926 | /** |
||
927 | * Set's the systemm name to be used. |
||
928 | * |
||
929 | * @param string $systemName The system name to be used |
||
930 | * |
||
931 | * @return void |
||
932 | */ |
||
933 | public function setSystemName($systemName) |
||
937 | |||
938 | /** |
||
939 | * Return's the systemm name to be used. |
||
940 | * |
||
941 | * @return string The system name to be used |
||
942 | */ |
||
943 | public function getSystemName() |
||
947 | |||
948 | /** |
||
949 | * Set's the collection with the path of the Magento Edition specific extension libraries. |
||
950 | * |
||
951 | * @param array $extensionLibraries The paths of the Magento Edition specific extension libraries |
||
952 | * |
||
953 | * @return void |
||
954 | */ |
||
955 | public function setExtensionLibraries(array $extensionLibraries) |
||
959 | |||
960 | /** |
||
961 | * Return's an array with the path of the Magento Edition specific extension libraries. |
||
962 | * |
||
963 | * @return array The paths of the Magento Edition specific extension libraries |
||
964 | */ |
||
965 | public function getExtensionLibraries() |
||
969 | |||
970 | /** |
||
971 | * Return's a collection with the path to additional vendor directories. |
||
972 | * |
||
973 | * @return \Doctrine\Common\Collections\ArrayCollection The paths to additional vendor directories |
||
974 | */ |
||
975 | public function getAdditionalVendorDirs() |
||
979 | |||
980 | /** |
||
981 | * Lifecycle callback that will be invoked after deserialization. |
||
982 | * |
||
983 | * @return void |
||
984 | * @PostDeserialize |
||
985 | */ |
||
986 | public function postDeserialize() |
||
1004 | |||
1005 | /** |
||
1006 | * The array with the subject's custom header mappings. |
||
1007 | * |
||
1008 | * @return array The custom header mappings |
||
1009 | */ |
||
1010 | public function getHeaderMappings() |
||
1024 | |||
1025 | /** |
||
1026 | * The array with the subject's custom image types. |
||
1027 | * |
||
1028 | * @return array The custom image types |
||
1029 | */ |
||
1030 | public function getImageTypes() |
||
1044 | |||
1045 | /** |
||
1046 | * Return's the array with the configured listeners. |
||
1047 | * |
||
1048 | * @return array The array with the listeners |
||
1049 | */ |
||
1050 | public function getListeners() |
||
1054 | |||
1055 | /** |
||
1056 | * Set's the flag that decides whether or not the import should be wrapped within a single transaction. |
||
1057 | * |
||
1058 | * @param boolean $singleTransaction TRUE if the import should be wrapped in a single transation, else FALSE |
||
1059 | * |
||
1060 | * return void |
||
1061 | */ |
||
1062 | public function setSingleTransaction($singleTransaction) |
||
1066 | |||
1067 | /** |
||
1068 | * Whether or not the import should be wrapped within a single transation. |
||
1069 | * |
||
1070 | * @return boolean TRUE if the import should be wrapped in a single transation, else FALSE |
||
1071 | */ |
||
1072 | public function isSingleTransaction() |
||
1076 | } |
||
1077 |