protected function validateDirectiveInChange($type, $directive) { if (!in_array($directive, self::VALID_DIRECTIVES[$type])) { $this->throwException(sprintf('Directive "%s" is not valid for a "%s" changetype', $directive, $type)); } }