public function setMask(int $mask): ZipInterface {

        $mask = filter_var($mask, FILTER_VALIDATE_INT, [
            "options" => [
                "max_range" => 0777,
                "default" => 0777
            ],
            'flags' => FILTER_FLAG_ALLOW_OCTAL
        ]);
        $this->mask = $mask;

        return $this;

    }
public function setMask(int $mask): ZipInterface {

        $mask = filter_var($mask, FILTER_VALIDATE_INT, [
            "options" => [
                "max_range" => 0777,
                "default" => 0777
            ],
            'flags' => FILTER_FLAG_ALLOW_OCTAL
        ]);
        $this->mask = $mask;

        return $this;

    }
public function setMask ( int $ mask ) : ZipInterface { $ mask = filter_var ( $ mask , FILTER_VALIDATE_INT , [ "options" => [ "max_range" => 0777 , "default" => 0777 ] , 'flags' => FILTER_FLAG_ALLOW_OCTAL ] ) ; $ this -> mask = $ mask ; return $ this ; }
Set the mask of the extraction folder

@param int $mask Integer representation of the file mask

@return Zip
Set the mask of the extraction folder