original_string: public function setExtractFlags($flag)
      {
          switch ($flag) {
              case self::EXTR_DATA:
              case self::EXTR_PRIORITY:
              case self::EXTR_BOTH:
                  $this->extractFlag = $flag;
                  break;
              default:
                  throw new Exception\InvalidArgumentException("The extract flag specified is not valid");
          }
      }
code: public function setExtractFlags($flag)
      {
          switch ($flag) {
              case self::EXTR_DATA:
              case self::EXTR_PRIORITY:
              case self::EXTR_BOTH:
                  $this->extractFlag = $flag;
                  break;
              default:
                  throw new Exception\InvalidArgumentException("The extract flag specified is not valid");
          }
      }
code_tokens: public function setExtractFlags ( $ flag ) { switch ( $ flag ) { case self :: EXTR_DATA : case self :: EXTR_PRIORITY : case self :: EXTR_BOTH : $ this -> extractFlag = $ flag ; break ; default : throw new Exception \ InvalidArgumentException ( "The extract flag specified is not valid" ) ; } }
docstring: Set the extract flag
  
  @param integer $flag
docstring_tokens: Set the extract flag