ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TagAssignment.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
28 protected TagInterface $tag;
29
30 public function __construct(
33 ) {
34 $this->path = $path;
35 $this->tag = $tag;
36 }
37
42 public function matchesPath(PathInterface $path): bool
43 {
44 return $path->toString() === $this->path->toString();
45 }
46
47 public function path(): PathInterface
48 {
49 return $this->path;
50 }
51
52 public function tag(): TagInterface
53 {
54 return $this->tag;
55 }
56}
matchesPath(PathInterface $path)
This has turned out to be pretty slow, only use in isolated cases.
__construct(PathInterface $path, TagInterface $tag)