ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Badge\ModalContent Class Reference
+ Collaboration diagram for ILIAS\Badge\ModalContent:

Public Member Functions

 __construct (private readonly ilBadge $badge, private readonly array $properties)
 
 badge ()
 
 properties ()
 
 withAdditionalProperties (array $properties)
 

Detailed Description

Definition at line 25 of file ModalContent.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Badge\ModalContent::__construct ( private readonly ilBadge  $badge,
private readonly array  $properties 
)
Parameters
string<string,string>$properties

Definition at line 30 of file ModalContent.php.

33 {
34 }

Member Function Documentation

◆ badge()

ILIAS\Badge\ModalContent::badge ( )

◆ properties()

ILIAS\Badge\ModalContent::properties ( )
Returns
array<string, string>

Definition at line 44 of file ModalContent.php.

44 : array
45 {
46 return $this->properties;
47 }

Referenced by ILIAS\Badge\Modal\item(), and ILIAS\Badge\ModalContent\withAdditionalProperties().

+ Here is the caller graph for this function:

◆ withAdditionalProperties()

ILIAS\Badge\ModalContent::withAdditionalProperties ( array  $properties)
Parameters
string<string,string>$properties

Definition at line 52 of file ModalContent.php.

52 : self
53 {
54 return new self($this->badge(), $this->properties() + $properties);
55 }

References ILIAS\Badge\ModalContent\badge(), and ILIAS\Badge\ModalContent\properties().

Referenced by ILIAS\Badge\Tile\addAssignment().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: