public function setShowHide($showHide)
    {
        if (in_array($showHide, ShowHide::asArray()) === true) {
            $this->showHide = $showHide;
        } else {
            $msg = "The 'showHide' argument must be a value from the ShowHide enumeration.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setShowHide($showHide)
    {
        if (in_array($showHide, ShowHide::asArray()) === true) {
            $this->showHide = $showHide;
        } else {
            $msg = "The 'showHide' argument must be a value from the ShowHide enumeration.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setShowHide ( $ showHide ) { if ( in_array ( $ showHide , ShowHide :: asArray ( ) ) === true ) { $ this -> showHide = $ showHide ; } else { $ msg = "The 'showHide' argument must be a value from the ShowHide enumeration." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the visibility of the choice.

@param integer $showHide A value from the ShowHide enumeration.
@throws \InvalidArgumentException If $showHide is not a value from the ShowHide enumeration.
Set the visibility of the choice .