RequirementsList.php 479 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace ModulesGarden\Servers\KerioEmail\Core\App\Requirements;
  3. /**
  4. * Description of Requirements
  5. *
  6. * @author INBSX-37H
  7. */
  8. abstract class RequirementsList
  9. {
  10. protected $requirementsList = [];
  11. public function getHandlerInstance()
  12. {
  13. $handler = $this->getHandler();
  14. if (!class_exists($handler))
  15. {
  16. return null;
  17. }
  18. return new $handler($this->requirementsList);
  19. }
  20. abstract function getHandler();
  21. }