original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Set whether the option's value is required.
  
  @param int $valueType
  
  @return $this
  @throws \Parable\Console\Exception
docstring_tokens: Set whether the option s value is required .