ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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.

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

44  : array
45  {
46  return $this->properties;
47  }
+ 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.

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

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

52  : self
53  {
54  return new self($this->badge(), $this->properties() + $properties);
55  }
+ 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: