chamilo/chamilo-lms

View on GitHub
public/plugin/maintenancemode/MaintenanceModePlugin.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/* For licensing terms, see /license.txt */

/**
 * Class MaintenanceModePlugin.
 */
class MaintenanceModePlugin extends Plugin
{
    /**
     * MaintenanceModePlugin constructor.
     */
    public function __construct()
    {
        parent::__construct(
            '0.1',
            'Julio Montoya',
            [
                'tool_enable' => 'boolean',
            ]
        );
    }

    /**
     * @return $this
     */
    public static function create()
    {
        static $result = null;

        return $result ?: $result = new self();
    }
}