public function setShowSolution($showSolution)
    {
        if (is_bool($showSolution)) {
            $this->showSolution = $showSolution;
        } else {
            $msg = "ShowSolution must be a boolean, '" . gettype($showSolution) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setShowSolution($showSolution)
    {
        if (is_bool($showSolution)) {
            $this->showSolution = $showSolution;
        } else {
            $msg = "ShowSolution must be a boolean, '" . gettype($showSolution) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setShowSolution ( $ showSolution ) { if ( is_bool ( $ showSolution ) ) { $ this -> showSolution = $ showSolution ; } else { $ msg = "ShowSolution must be a boolean, '" . gettype ( $ showSolution ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set if the candidate is provided a way to enter the 'solution' state.

@param boolean $showSolution true if he is provided, false if not.
@throws \InvalidArgumentException If $showSolution is not a boolean.
Set if the candidate is provided a way to enter the solution state .