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 | * Return's the array with the plugins of the operation to use. |
||
| 354 | * |
||
| 355 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the plugins |
||
| 356 | * @throws \Exception Is thrown, if no plugins are available for the actual operation |
||
| 357 | */ |
||
| 358 | public function getPlugins() |
||
| 372 | |||
| 373 | /** |
||
| 374 | * Map's the passed value to a boolean. |
||
| 375 | * |
||
| 376 | * @param string $value The value to map |
||
| 377 | * |
||
| 378 | * @return boolean The mapped value |
||
| 379 | * @throws \Exception Is thrown, if the value can't be mapped |
||
| 380 | */ |
||
| 381 | public function mapBoolean($value) |
||
| 392 | |||
| 393 | /** |
||
| 394 | * Return's the operation, initialize from the actual operation name. |
||
| 395 | * |
||
| 396 | * @return \TechDivision\Import\Configuration\OperationConfigurationInterface The operation instance |
||
| 397 | */ |
||
| 398 | protected function getOperation() |
||
| 402 | |||
| 403 | /** |
||
| 404 | * Return's the application's unique DI identifier. |
||
| 405 | * |
||
| 406 | * @return string The application's unique DI identifier |
||
| 407 | */ |
||
| 408 | public function getId() |
||
| 412 | |||
| 413 | /** |
||
| 414 | * Return's the operation name that has to be used. |
||
| 415 | * |
||
| 416 | * @param string $operationName The operation name that has to be used |
||
| 417 | * |
||
| 418 | * @return void |
||
| 419 | */ |
||
| 420 | public function setOperationName($operationName) |
||
| 424 | |||
| 425 | /** |
||
| 426 | * Return's the operation name that has to be used. |
||
| 427 | * |
||
| 428 | * @return string The operation name that has to be used |
||
| 429 | */ |
||
| 430 | public function getOperationName() |
||
| 434 | |||
| 435 | /** |
||
| 436 | * Set's the Magento installation directory. |
||
| 437 | * |
||
| 438 | * @param string $installationDir The Magento installation directory |
||
| 439 | * |
||
| 440 | * @return void |
||
| 441 | */ |
||
| 442 | public function setInstallationDir($installationDir) |
||
| 446 | |||
| 447 | /** |
||
| 448 | * Return's the Magento installation directory. |
||
| 449 | * |
||
| 450 | * @return string The Magento installation directory |
||
| 451 | */ |
||
| 452 | public function getInstallationDir() |
||
| 456 | |||
| 457 | /** |
||
| 458 | * Set's the source directory that has to be watched for new files. |
||
| 459 | * |
||
| 460 | * @param string $sourceDir The source directory |
||
| 461 | * |
||
| 462 | * @return void |
||
| 463 | */ |
||
| 464 | public function setSourceDir($sourceDir) |
||
| 468 | |||
| 469 | /** |
||
| 470 | * Return's the source directory that has to be watched for new files. |
||
| 471 | * |
||
| 472 | * @return string The source directory |
||
| 473 | */ |
||
| 474 | public function getSourceDir() |
||
| 478 | |||
| 479 | /** |
||
| 480 | * Set's the target directory with the files that has been imported. |
||
| 481 | * |
||
| 482 | * @param string $targetDir The target directory |
||
| 483 | * |
||
| 484 | * @return void |
||
| 485 | */ |
||
| 486 | public function setTargetDir($targetDir) |
||
| 490 | |||
| 491 | /** |
||
| 492 | * Return's the target directory with the files that has been imported. |
||
| 493 | * |
||
| 494 | * @return string The target directory |
||
| 495 | */ |
||
| 496 | public function getTargetDir() |
||
| 500 | |||
| 501 | /** |
||
| 502 | * Set's the Magento edition, EE or CE. |
||
| 503 | * |
||
| 504 | * @param string $magentoEdition The Magento edition |
||
| 505 | * |
||
| 506 | * @return void |
||
| 507 | */ |
||
| 508 | public function setMagentoEdition($magentoEdition) |
||
| 512 | |||
| 513 | /** |
||
| 514 | * Return's the Magento edition, EE or CE. |
||
| 515 | * |
||
| 516 | * @return string The Magento edition |
||
| 517 | */ |
||
| 518 | public function getMagentoEdition() |
||
| 522 | |||
| 523 | /** |
||
| 524 | * Return's the Magento version, e. g. 2.1.0. |
||
| 525 | * |
||
| 526 | * @param string $magentoVersion The Magento version |
||
| 527 | * |
||
| 528 | * @return void |
||
| 529 | */ |
||
| 530 | public function setMagentoVersion($magentoVersion) |
||
| 534 | |||
| 535 | /** |
||
| 536 | * Return's the Magento version, e. g. 2.1.0. |
||
| 537 | * |
||
| 538 | * @return string The Magento version |
||
| 539 | */ |
||
| 540 | public function getMagentoVersion() |
||
| 544 | |||
| 545 | /** |
||
| 546 | * Return's the subject's source date format to use. |
||
| 547 | * |
||
| 548 | * @return string The source date format |
||
| 549 | */ |
||
| 550 | public function getSourceDateFormat() |
||
| 554 | |||
| 555 | /** |
||
| 556 | * Set's the subject's source date format to use. |
||
| 557 | * |
||
| 558 | * @param string $sourceDateFormat The source date format |
||
| 559 | * |
||
| 560 | * @return void |
||
| 561 | */ |
||
| 562 | public function setSourceDateFormat($sourceDateFormat) |
||
| 566 | |||
| 567 | /** |
||
| 568 | * Return's the entity type code to be used. |
||
| 569 | * |
||
| 570 | * @return string The entity type code to be used |
||
| 571 | */ |
||
| 572 | public function getEntityTypeCode() |
||
| 576 | |||
| 577 | /** |
||
| 578 | * Set's the entity type code to be used. |
||
| 579 | * |
||
| 580 | * @param string $entityTypeCode The entity type code |
||
| 581 | * |
||
| 582 | * @return void |
||
| 583 | */ |
||
| 584 | public function setEntityTypeCode($entityTypeCode) |
||
| 588 | |||
| 589 | /** |
||
| 590 | * Return's the multiple field delimiter character to use, default value is comma (,). |
||
| 591 | * |
||
| 592 | * @return string The multiple field delimiter character |
||
| 593 | */ |
||
| 594 | public function getMultipleFieldDelimiter() |
||
| 598 | |||
| 599 | /** |
||
| 600 | * Return's the multiple value delimiter character to use, default value is comma (|). |
||
| 601 | * |
||
| 602 | * @return string The multiple value delimiter character |
||
| 603 | */ |
||
| 604 | public function getMultipleValueDelimiter() |
||
| 608 | |||
| 609 | /** |
||
| 610 | * Return's the delimiter character to use, default value is comma (,). |
||
| 611 | * |
||
| 612 | * @return string The delimiter character |
||
| 613 | */ |
||
| 614 | public function getDelimiter() |
||
| 618 | |||
| 619 | /** |
||
| 620 | * The enclosure character to use, default value is double quotation ("). |
||
| 621 | * |
||
| 622 | * @return string The enclosure character |
||
| 623 | */ |
||
| 624 | public function getEnclosure() |
||
| 628 | |||
| 629 | /** |
||
| 630 | * The escape character to use, default value is backslash (\). |
||
| 631 | * |
||
| 632 | * @return string The escape character |
||
| 633 | */ |
||
| 634 | public function getEscape() |
||
| 638 | |||
| 639 | /** |
||
| 640 | * The file encoding of the CSV source file, default value is UTF-8. |
||
| 641 | * |
||
| 642 | * @return string The charset used by the CSV source file |
||
| 643 | */ |
||
| 644 | public function getFromCharset() |
||
| 648 | |||
| 649 | /** |
||
| 650 | * The file encoding of the CSV targetfile, default value is UTF-8. |
||
| 651 | * |
||
| 652 | * @return string The charset used by the CSV target file |
||
| 653 | */ |
||
| 654 | public function getToCharset() |
||
| 658 | |||
| 659 | /** |
||
| 660 | * The file mode of the CSV target file, either one of write or append, default is write. |
||
| 661 | * |
||
| 662 | * @return string The file mode of the CSV target file |
||
| 663 | */ |
||
| 664 | public function getFileMode() |
||
| 668 | |||
| 669 | /** |
||
| 670 | * Queries whether or not strict mode is enabled or not, default is TRUE. |
||
| 671 | * |
||
| 672 | * @return boolean TRUE if strict mode is enabled, else FALSE |
||
| 673 | */ |
||
| 674 | public function isStrictMode() |
||
| 678 | |||
| 679 | /** |
||
| 680 | * Remove's all configured database configuration. |
||
| 681 | * |
||
| 682 | * @return void |
||
| 683 | */ |
||
| 684 | public function clearDatabases() |
||
| 688 | |||
| 689 | /** |
||
| 690 | * Add's the passed database configuration. |
||
| 691 | * |
||
| 692 | * @param \TechDivision\Import\Configuration\DatabaseConfigurationInterface $database The database configuration |
||
| 693 | * |
||
| 694 | * @return void |
||
| 695 | */ |
||
| 696 | public function addDatabase(DatabaseConfigurationInterface $database) |
||
| 700 | |||
| 701 | /** |
||
| 702 | * Return's the number database configurations. |
||
| 703 | * |
||
| 704 | * @return integer The number of database configurations |
||
| 705 | */ |
||
| 706 | public function countDatabases() |
||
| 710 | |||
| 711 | /** |
||
| 712 | * Return's the database configuration. |
||
| 713 | * |
||
| 714 | * If an explicit DB ID is specified, the method tries to return the database with this ID. If |
||
| 715 | * the database configuration is NOT available, an execption is thrown. |
||
| 716 | * |
||
| 717 | * If no explicit DB ID is specified, the method tries to return the default database configuration, |
||
| 718 | * if not available the first one. |
||
| 719 | * |
||
| 720 | * @return \TechDivision\Import\Configuration\Jms\Configuration\Database The database configuration |
||
| 721 | * @throws \Exception Is thrown, if no database configuration is available |
||
| 722 | */ |
||
| 723 | public function getDatabase() |
||
| 756 | |||
| 757 | /** |
||
| 758 | * Return's the ArrayCollection with the configured operations. |
||
| 759 | * |
||
| 760 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the operations |
||
| 761 | */ |
||
| 762 | public function getOperations() |
||
| 766 | |||
| 767 | /** |
||
| 768 | * Return's the ArrayCollection with the configured loggers. |
||
| 769 | * |
||
| 770 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the loggers |
||
| 771 | */ |
||
| 772 | public function getLoggers() |
||
| 776 | |||
| 777 | /** |
||
| 778 | * Set's the flag that import artefacts have to be archived or not. |
||
| 779 | * |
||
| 780 | * @param boolean $archiveArtefacts TRUE if artefacts have to be archived, else FALSE |
||
| 781 | * |
||
| 782 | * @return void |
||
| 783 | */ |
||
| 784 | public function setArchiveArtefacts($archiveArtefacts) |
||
| 788 | |||
| 789 | /** |
||
| 790 | * Return's the TRUE if the import artefacts have to be archived. |
||
| 791 | * |
||
| 792 | * @return boolean TRUE if the import artefacts have to be archived |
||
| 793 | */ |
||
| 794 | public function haveArchiveArtefacts() |
||
| 798 | |||
| 799 | /** |
||
| 800 | * The directory where the archives will be stored. |
||
| 801 | * |
||
| 802 | * @param string $archiveDir The archive directory |
||
| 803 | * |
||
| 804 | * @return void |
||
| 805 | */ |
||
| 806 | public function setArchiveDir($archiveDir) |
||
| 810 | |||
| 811 | /** |
||
| 812 | * The directory where the archives will be stored. |
||
| 813 | * |
||
| 814 | * @return string The archive directory |
||
| 815 | */ |
||
| 816 | public function getArchiveDir() |
||
| 820 | |||
| 821 | /** |
||
| 822 | * Set's the debug mode. |
||
| 823 | * |
||
| 824 | * @param boolean $debugMode TRUE if debug mode is enabled, else FALSE |
||
| 825 | * |
||
| 826 | * @return void |
||
| 827 | */ |
||
| 828 | public function setDebugMode($debugMode) |
||
| 832 | |||
| 833 | /** |
||
| 834 | * Queries whether or not debug mode is enabled or not, default is TRUE. |
||
| 835 | * |
||
| 836 | * @return boolean TRUE if debug mode is enabled, else FALSE |
||
| 837 | */ |
||
| 838 | public function isDebugMode() |
||
| 842 | |||
| 843 | /** |
||
| 844 | * Set's the log level to use. |
||
| 845 | * |
||
| 846 | * @param string $logLevel The log level to use |
||
| 847 | * |
||
| 848 | * @return void |
||
| 849 | */ |
||
| 850 | public function setLogLevel($logLevel) |
||
| 854 | |||
| 855 | /** |
||
| 856 | * Return's the log level to use. |
||
| 857 | * |
||
| 858 | * @return string The log level to use |
||
| 859 | */ |
||
| 860 | public function getLogLevel() |
||
| 864 | |||
| 865 | /** |
||
| 866 | * Set's the explicit DB ID to use. |
||
| 867 | * |
||
| 868 | * @param string $useDbId The explicit DB ID to use |
||
| 869 | * |
||
| 870 | * @return void |
||
| 871 | */ |
||
| 872 | public function setUseDbId($useDbId) |
||
| 876 | |||
| 877 | /** |
||
| 878 | * Return's the explicit DB ID to use. |
||
| 879 | * |
||
| 880 | * @return string The explicit DB ID to use |
||
| 881 | */ |
||
| 882 | public function getUseDbId() |
||
| 886 | |||
| 887 | /** |
||
| 888 | * Set's the PID filename to use. |
||
| 889 | * |
||
| 890 | * @param string $pidFilename The PID filename to use |
||
| 891 | * |
||
| 892 | * @return void |
||
| 893 | */ |
||
| 894 | public function setPidFilename($pidFilename) |
||
| 898 | |||
| 899 | /** |
||
| 900 | * Return's the PID filename to use. |
||
| 901 | * |
||
| 902 | * @return string The PID filename to use |
||
| 903 | */ |
||
| 904 | public function getPidFilename() |
||
| 908 | |||
| 909 | /** |
||
| 910 | * Set's the systemm name to be used. |
||
| 911 | * |
||
| 912 | * @param string $systemName The system name to be used |
||
| 913 | * |
||
| 914 | * @return void |
||
| 915 | */ |
||
| 916 | public function setSystemName($systemName) |
||
| 920 | |||
| 921 | /** |
||
| 922 | * Return's the systemm name to be used. |
||
| 923 | * |
||
| 924 | * @return string The system name to be used |
||
| 925 | */ |
||
| 926 | public function getSystemName() |
||
| 930 | |||
| 931 | /** |
||
| 932 | * Set's the collection with the path of the Magento Edition specific extension libraries. |
||
| 933 | * |
||
| 934 | * @param array $extensionLibraries The paths of the Magento Edition specific extension libraries |
||
| 935 | * |
||
| 936 | * @return void |
||
| 937 | */ |
||
| 938 | public function setExtensionLibraries(array $extensionLibraries) |
||
| 942 | |||
| 943 | /** |
||
| 944 | * Return's an array with the path of the Magento Edition specific extension libraries. |
||
| 945 | * |
||
| 946 | * @return array The paths of the Magento Edition specific extension libraries |
||
| 947 | */ |
||
| 948 | public function getExtensionLibraries() |
||
| 952 | |||
| 953 | /** |
||
| 954 | * Return's a collection with the path to additional vendor directories. |
||
| 955 | * |
||
| 956 | * @return \Doctrine\Common\Collections\ArrayCollection The paths to additional vendor directories |
||
| 957 | */ |
||
| 958 | public function getAdditionalVendorDirs() |
||
| 962 | |||
| 963 | /** |
||
| 964 | * Lifecycle callback that will be invoked after deserialization. |
||
| 965 | * |
||
| 966 | * @return void |
||
| 967 | * @PostDeserialize |
||
| 968 | */ |
||
| 969 | public function postDeserialize() |
||
| 987 | |||
| 988 | /** |
||
| 989 | * The array with the subject's custom header mappings. |
||
| 990 | * |
||
| 991 | * @return array The custom header mappings |
||
| 992 | */ |
||
| 993 | public function getHeaderMappings() |
||
| 1007 | |||
| 1008 | /** |
||
| 1009 | * The array with the subject's custom image types. |
||
| 1010 | * |
||
| 1011 | * @return array The custom image types |
||
| 1012 | */ |
||
| 1013 | public function getImageTypes() |
||
| 1027 | } |
||
| 1028 |