src/ShellOption.php
public function enable($enable = true)
    {
        if (! is_bool($enable)) {
            throw new InvalidArgumentException("enable must be a boolean. [$enable] given.");
        }

        $this->enabled = $enable;

        return $this;
    }
public function enable($enable = true)
    {
        if (! is_bool($enable)) {
            throw new InvalidArgumentException("enable must be a boolean. [$enable] given.");
        }

        $this->enabled = $enable;

        return $this;
    }
public function enable ( $ enable = true ) { if ( ! is_bool ( $ enable ) ) { throw new InvalidArgumentException ( "enable must be a boolean. [$enable] given." ) ; } $ this -> enabled = $ enable ; return $ this ; }
Enable the option.

@param bool|true $enable

@throws InvalidArgumentException

@return $this
Enable the option .