<?php

namespace Lc\SovBundle\Definition;


class SiteSettingDefinition extends AbstractSettingDefinition implements SiteSettingDefinitionInterface
{
    const CATEGORY_GENERAL = 'general';

    const SETTING_MAINTENANCE = 'maintenance';
    const SETTING_MAINTENANCE_IP_AUTHORIZED = 'maintenanceIpAuthorized';

    public function __construct()
    {
        $this->addSettingSelect(
                [
                        'category' => self::CATEGORY_GENERAL,
                        'name' => self::SETTING_MAINTENANCE,
                        'choices' => [
                                'Non' => 0,
                                'Oui' => 1,
                        ]
                ]
        );

        $this->addSettingText(
                [
                        'category' => self::CATEGORY_GENERAL,
                        'name' => self::SETTING_MAINTENANCE_IP_AUTHORIZED,
                ]
        );
    }

    public function getCategories()
    {
        return [
                self::CATEGORY_GENERAL
        ];
    }

}