ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ModalContent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Badge;
22
23use ilBadge;
24
26{
30 public function __construct(
31 private readonly ilBadge $badge,
32 private readonly array $properties
33 ) {
34 }
35
36 public function badge(): ilBadge
37 {
38 return $this->badge;
39 }
40
44 public function properties(): array
45 {
46 return $this->properties;
47 }
48
52 public function withAdditionalProperties(array $properties): self
53 {
54 return new self($this->badge(), $this->properties() + $properties);
55 }
56}
withAdditionalProperties(array $properties)
__construct(private readonly ilBadge $badge, private readonly array $properties)