MaintenanceModePlugin.php 577 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Class MaintenanceModePlugin.
  5. */
  6. class MaintenanceModePlugin extends Plugin
  7. {
  8. /**
  9. * MaintenanceModePlugin constructor.
  10. */
  11. public function __construct()
  12. {
  13. parent::__construct(
  14. '0.1',
  15. 'Julio Montoya',
  16. [
  17. 'tool_enable' => 'boolean',
  18. ]
  19. );
  20. }
  21. /**
  22. * @return $this
  23. */
  24. public static function create()
  25. {
  26. static $result = null;
  27. return $result ? $result : $result = new self();
  28. }
  29. }