ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CriterionContent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24{
25 public function __construct(private readonly string $type, private readonly array $arguments)
26 {
27 }
28
29 public function type(): string
30 {
31 return $this->type;
32 }
33
34 public function arguments(): array
35 {
36 return $this->arguments;
37 }
38
39 public function equals(CriterionContent $other): bool
40 {
41 return $this->type() === $other->type()
42 && $this->arguments() === $other->arguments();
43 }
44}
__construct(private readonly string $type, private readonly array $arguments)