original_string: public function setMethod($method) {
          $method = (int) $method;
          switch ($this->method) {
              case self::METHOD_AUTO:
              case self::METHOD_GET:
              case self::METHOD_POST:
                  $this->method = $method;
                  break;
              default:
                  throw new InvalidArgumentException();
          }
      }
code: public function setMethod($method) {
          $method = (int) $method;
          switch ($this->method) {
              case self::METHOD_AUTO:
              case self::METHOD_GET:
              case self::METHOD_POST:
                  $this->method = $method;
                  break;
              default:
                  throw new InvalidArgumentException();
          }
      }
code_tokens: public function setMethod ( $ method ) { $ method = ( int ) $ method ; switch ( $ this -> method ) { case self :: METHOD_AUTO : case self :: METHOD_GET : case self :: METHOD_POST : $ this -> method = $ method ; break ; default : throw new InvalidArgumentException ( ) ; } }
docstring: Setter for request method
  @param int $method method type code
  @throws InvalidArgumentException
docstring_tokens: Setter for request method