type = $type; } function setType($type) { return $this->type = $type; } function isAllow() { return $this->type == true; } function isDeny() { return $this->type == false; } function addRule($rule) { $this->rules[] = $rule; } function isSatisfiedBy($request) { foreach($this->rules as $rule) { if(!$rule->isSatisfiedBy($request)) return false; } return true; } } ?>