ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullPath.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\MetaData\Paths;
22
23class NullPath implements PathInterface
24{
25 public function steps(): \Generator
26 {
27 yield from [];
28 }
29
30 public function isRelative(): bool
31 {
32 return false;
33 }
34
35 public function leadsToExactlyOneElement(): bool
36 {
37 return false;
38 }
39
40 public function toString(): string
41 {
42 return '';
43 }
44}
isRelative()
Relative paths start at some otherwise determined element, absolute paths start at root.
Definition: NullPath.php:30
leadsToExactlyOneElement()
Specifies whether the path should point to exactly one element, or whether it can also lead to no or ...
Definition: NullPath.php:35
steps()
Get all steps in the path.
Definition: NullPath.php:25