Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Block/MultipleValued.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\MVC\Symfony\Matcher\Block;
8
9 use eZ\Publish\Core\MVC\RepositoryAware;
10
14 abstract class MultipleValued extends RepositoryAware implements ViewMatcherInterface
15 {
17 protected $values;
18
27 public function setMatchingConfig($matchingConfig)
28 {
29 $matchingConfig = !is_array($matchingConfig) ? [$matchingConfig] : $matchingConfig;
30 $this->values = array_fill_keys($matchingConfig, true);
31 }
32
38 public function getValues()
39 {
40 return array_keys($this->values);
41 }
42
46 public function getRepository()
47 {
48 return $this->repository;
49 }
50 }
eZ\Publish\Core\MVC\RepositoryAware
Definition: RepositoryAware.php:12
eZ\Publish\Core\MVC\RepositoryAware\$repository
$repository
Definition: RepositoryAware.php:14
eZ\Publish\Core\MVC\Symfony\Matcher\Block\MultipleValued
Abstract class for basic matchers, accepting multiple values to match against.
Definition: Block/MultipleValued.php:15
eZ\Publish\Core\MVC\Symfony\Matcher\Block\MultipleValued\setMatchingConfig
setMatchingConfig($matchingConfig)
Registers the matching configuration for the matcher.
Definition: Block/MultipleValued.php:27
eZ\Publish\Core\MVC\Symfony\Matcher\Block\MultipleValued\$values
$values
Definition: Block/MultipleValued.php:17
eZ\Publish\Core\MVC\Symfony\Matcher\Block\MultipleValued\getValues
getValues()
Returns matcher's values.
Definition: Block/MultipleValued.php:38
eZ\Publish\Core\MVC\Symfony\Matcher\Block\MultipleValued\getRepository
getRepository()
Definition: Block/MultipleValued.php:46
eZ\Publish\Core\MVC\Symfony\Matcher\Block\ViewMatcherInterface
Main interface for block matchers.
Definition: Block/ViewMatcherInterface.php:15
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.