public function setValueType($valueType)
    {
        if (!in_array(
            $valueType,
            [
                \Parable\Console\Parameter::OPTION_VALUE_REQUIRED,
                \Parable\Console\Parameter::OPTION_VALUE_OPTIONAL,
            ]
        )) {
            throw new \Parable\Console\Exception('Value type must be one of the OPTION_* constants.');
        }

        $this->valueType = $valueType;
        return $this;
    }
public function setValueType($valueType)
    {
        if (!in_array(
            $valueType,
            [
                \Parable\Console\Parameter::OPTION_VALUE_REQUIRED,
                \Parable\Console\Parameter::OPTION_VALUE_OPTIONAL,
            ]
        )) {
            throw new \Parable\Console\Exception('Value type must be one of the OPTION_* constants.');
        }

        $this->valueType = $valueType;
        return $this;
    }
public function setValueType ( $ valueType ) { if ( ! in_array ( $ valueType , [ \ Parable \ Console \ Parameter :: OPTION_VALUE_REQUIRED , \ Parable \ Console \ Parameter :: OPTION_VALUE_OPTIONAL , ] ) ) { throw new \ Parable \ Console \ Exception ( 'Value type must be one of the OPTION_* constants.' ) ; } $ this -> valueType = $ valueType ; return $ this ; }
Set whether the option's value is required.

@param int $valueType

@return $this
@throws \Parable\Console\Exception
Set whether the option s value is required .