MOON
Server: Apache
System: Linux res.emeff.ca 3.10.0-962.3.2.lve1.5.24.10.el7.x86_64 #1 SMP Wed Mar 20 07:36:02 EDT 2019 x86_64
User: accemeff (1004)
PHP: 7.0.33
Disabled: NONE
Upload Files
File: /home/accemeff/vendor/craftcms/cms/src/models/Info.php
<?php
/**
 * @link https://craftcms.com/
 * @copyright Copyright (c) Pixel & Tonic, Inc.
 * @license https://craftcms.github.io/license/
 */

namespace craft\models;

use Craft;
use craft\base\Model;

/**
 * Class Info model.
 *
 * @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
 * @since 3.0
 */
class Info extends Model
{
    // Properties
    // =========================================================================

    /**
     * @var int|null ID
     */
    public $id;

    /**
     * @var string|null Version
     */
    public $version;

    /**
     * @var string Schema version
     */
    public $schemaVersion = '0';

    /**
     * @var bool Maintenance
     */
    public $maintenance = false;

    /**
     * @var string Serialized configuration
     */
    public $config = '';

    /**
     * @var string JSON array of configuration map of UIDs to location in configuration
     */
    public $configMap = '';

    /**
     * @var string|null Uid
     */
    public $uid;

    /**
     * @var string Field version
     */
    public $fieldVersion = '000000000000';

    /**
     * @var \DateTime|null Date updated
     */
    public $dateUpdated;

    /**
     * @var \DateTime|null Date created
     */
    public $dateCreated;

    // Public Methods
    // =========================================================================

    /**
     * @inheritdoc
     */
    public function rules()
    {
        $rules = parent::rules();
        $rules[] = [['id'], 'number', 'integerOnly' => true];
        $rules[] = [['version', 'schemaVersion'], 'required'];
        return $rules;
    }

    // Deprecated
    // -------------------------------------------------------------------------

    /**
     * Returns the active Craft edition.
     *
     * @return int
     * @deprecated in 3.1. Use `Craft::$app->getEdition()` instead.
     */
    public function getEdition(): int
    {
        return Craft::$app->getEdition();
    }

    /**
     * Returns the system name.
     *
     * @return string
     * @deprecated in 3.1. Use `Craft::$app->projectConfig->get('system.name')` instead.
     */
    public function getName(): string
    {
        return Craft::$app->getProjectConfig()->get('system.name');
    }

    /**
     * Returns the system time zone.
     *
     * @return string
     * @deprecated in 3.1. Use `Craft::$app->getTimeZone()` instead.
     */
    public function getTimezone(): string
    {
        return Craft::$app->getTimeZone();
    }

    /**
     * Returns whether the system is currently live.
     *
     * @return bool
     * @deprecated in 3.1. Use `Craft::$app->getIsLive()` instead.
     */
    public function getOn(): bool
    {
        return Craft::$app->getIsLive();
    }
}