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");
        }
    }
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");
        }
    }
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" ) ; } }
Set the extract flag

@param integer $flag
Set the extract flag