public function setVisible($visible)
    {
        if (is_bool($visible)) {
            $this->visible = $visible;
        } else {
            $msg = "Visible must be a boolean, '" . gettype($visible) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setVisible($visible)
    {
        if (is_bool($visible)) {
            $this->visible = $visible;
        } else {
            $msg = "Visible must be a boolean, '" . gettype($visible) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setVisible ( $ visible ) { if ( is_bool ( $ visible ) ) { $ this -> visible = $ visible ; } else { $ msg = "Visible must be a boolean, '" . gettype ( $ visible ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the visibility of the section.

@param boolean $visible true if it must be visible, false otherwise.
@throws \InvalidArgumentException If $visible is not a boolean.
Set the visibility of the section .