ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
TagAssignment.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
26 {
27  protected PathInterface $path;
28  protected TagInterface $tag;
29 
30  public function __construct(
31  PathInterface $path,
32  TagInterface $tag
33  ) {
34  $this->path = $path;
35  $this->tag = $tag;
36  }
37 
38  public function matchesPath(PathInterface $path): bool
39  {
40  return $path->toString() === $this->path->toString();
41  }
42 
43  public function tag(): TagInterface
44  {
45  return $this->tag;
46  }
47 }
__construct(PathInterface $path, TagInterface $tag)