ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\MetaData\Paths;
22
24
26{
27 public function fromString(string $string): PathInterface
28 {
29 return new NullPath();
30 }
31
32 public function toElement(BaseElementInterface $to, bool $leads_to_exactly_one = false): PathInterface
33 {
34 return new NullPath();
35 }
36
37 public function betweenElements(BaseElementInterface $from, BaseElementInterface $to, bool $leads_to_exactly_one = false): PathInterface
38 {
39 return new NullPath();
40 }
41
42 public function custom(): BuilderInterface
43 {
44 return new NullBuilder();
45 }
46}
toElement(BaseElementInterface $to, bool $leads_to_exactly_one=false)
Returns absolute path from root to the given element.
Definition: NullFactory.php:32
betweenElements(BaseElementInterface $from, BaseElementInterface $to, bool $leads_to_exactly_one=false)
Returns relative path between two given elements.
Definition: NullFactory.php:37