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

API/Repository/Values/URL/Query/Criterion/Pattern.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\API\Repository\Values\URL\Query\Criterion;
8
12 class Pattern extends Matcher
13 {
19 public $pattern;
20
26 public function __construct($pattern)
27 {
28 if ($pattern === null || $pattern === '') {
29 throw new \InvalidArgumentException('URL pattern should not be empty!');
30 }
31
32 $this->pattern = $pattern;
33 }
34 }
eZ\Publish\API\Repository\Values\URL\Query\Criterion\Matcher
Definition: Publish/API/Repository/Values/URL/Query/Criterion/Matcher.php:12
eZ\Publish\API\Repository\Values\URL\Query\Criterion\Pattern
Matches URLs which contains the pattern.
Definition: API/Repository/Values/URL/Query/Criterion/Pattern.php:13
eZ\Publish\API\Repository\Values\URL\Query\Criterion\Pattern\$pattern
$pattern
Definition: API/Repository/Values/URL/Query/Criterion/Pattern.php:19
eZ\Publish\API\Repository\Values\URL\Query\Criterion\Pattern\__construct
__construct($pattern)
Pattern constructor.
Definition: API/Repository/Values/URL/Query/Criterion/Pattern.php:26
eZ\Publish\API\Repository\Values\URL\Query\Criterion
Definition: API/Repository/Values/URL/Query/Criterion/LogicalAnd.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.