/** * Overload the constdcteur * * BooleanSwitch constructor. * @param $name * @param string $label * @param null $function */ public function __construct($name, $label = '', $function = null) { parent::__construct($name, $label); $this->center(); if (!is_null($function)) { $this->setRemoteProcess($function); } }