original_string: public function setRequired($required)
      {
          if (!in_array(
              $required,
              [
                  \Parable\Console\Parameter::PARAMETER_REQUIRED,
                  \Parable\Console\Parameter::PARAMETER_OPTIONAL,
              ]
          )) {
              throw new \Parable\Console\Exception('Required must be one of the PARAMETER_* constants.');
          }
          $this->required = $required;
          return $this;
      }
code: public function setRequired($required)
      {
          if (!in_array(
              $required,
              [
                  \Parable\Console\Parameter::PARAMETER_REQUIRED,
                  \Parable\Console\Parameter::PARAMETER_OPTIONAL,
              ]
          )) {
              throw new \Parable\Console\Exception('Required must be one of the PARAMETER_* constants.');
          }
          $this->required = $required;
          return $this;
      }
code_tokens: public function setRequired ( $ required ) { if ( ! in_array ( $ required , [ \ Parable \ Console \ Parameter :: PARAMETER_REQUIRED , \ Parable \ Console \ Parameter :: PARAMETER_OPTIONAL , ] ) ) { throw new \ Parable \ Console \ Exception ( 'Required must be one of the PARAMETER_* constants.' ) ; } $ this -> required = $ required ; return $ this ; }
docstring: Set whether this argument is required.
  
  @param int $required
  
  @return $this
  @throws \Parable\Console\Exception
docstring_tokens: Set whether this argument is required .