/** * Checks if $valueObject matches $matcher rules. * * @param \eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface $matcher * @param \eZ\Publish\Core\MVC\Symfony\View\View $view * * @return bool * @internal param \eZ\Publish\API\Repository\Values\ValueObject $valueObject */ protected function doMatch(MatcherInterface $matcher, View $view) { if (!$view instanceof ContentValueView) { throw new InvalidArgumentException('View must be a ContentValueView instance'); } return $matcher->match($view); }
/** * Checks if $valueObject matches $matcher rules. * * @param \eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface $matcher * @param ValueObject $valueObject * * @throws InvalidArgumentException * * @return bool */ protected function doMatch(BaseMatcherInterface $matcher, View $view) { return $matcher->match($view); }