ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ILIAS\LegalDocuments\SelectionMap Class Reference

-covariant A More...

+ Collaboration diagram for ILIAS\LegalDocuments\SelectionMap:

Public Member Functions

 __construct (private readonly array $conditions=[], ?string $default_selection=null)
 
 choices ()
 
 defaultSelection ()
 

Private Attributes

readonly string $default_selection
 

Detailed Description

-covariant A

Definition at line 26 of file SelectionMap.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\SelectionMap::__construct ( private readonly array  $conditions = [],
?string  $default_selection = null 
)
Parameters
array<string,A>$conditions

Definition at line 33 of file SelectionMap.php.

36  {
37  $this->default_selection = $default_selection ?? key($this->conditions);
38  }

Member Function Documentation

◆ choices()

ILIAS\LegalDocuments\SelectionMap::choices ( )
Returns
array<string, A>

Definition at line 43 of file SelectionMap.php.

Referenced by ILIAS\LegalDocuments\Provide\ProvideDocument\conditionGroups().

43  : array
44  {
45  return $this->conditions;
46  }
+ Here is the caller graph for this function:

◆ defaultSelection()

ILIAS\LegalDocuments\SelectionMap::defaultSelection ( )

Definition at line 48 of file SelectionMap.php.

References ILIAS\LegalDocuments\SelectionMap\$default_selection.

48  : ?string
49  {
51  }

Field Documentation

◆ $default_selection

readonly string ILIAS\LegalDocuments\SelectionMap::$default_selection
private

Definition at line 28 of file SelectionMap.php.

Referenced by ILIAS\LegalDocuments\SelectionMap\defaultSelection().


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