<?php
namespace ModulesGarden\Servers\ZimbraEmail\App\UI\Admin\Custom\Fields;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Interfaces\AdminArea;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Interfaces\ClientArea;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\Fields\Select;

/**
 *
 * Created by PhpStorm.
 * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
 * Date: 02.10.19
 * Time: 10:08
 * Class ExtendedSelect
 */
class ExtendedSelect extends Select implements AdminArea, ClientArea
{
    protected $id   = 'extendedSelect';
    protected $name = 'extendedSelect';

    protected $hidden = false;

    /**
     * @return bool
     */
    public function isHidden()
    {
        return $this->hidden;
    }

    /**
     * @param $hidden
     * @return $this
     */
    public function setHidden($hidden)
    {
        $this->hidden = $hidden;
        return $this;
    }

    /**
     * @return ExtendedSelect
     */
    public function enableHidden()
    {
        return $this->setHidden(true);
    }

    /**
     * @return ExtendedSelect
     */
    public function disableHidden()
    {
        return $this->setHidden(false);
    }

}