public function apply(ContextInterface $context) { foreach ($this->rules as $rule) { $this->applyRule($rule, $context); } }