ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LegalDocuments\ConsumerToolbox\Convert Class Reference
+ Collaboration diagram for ILIAS\LegalDocuments\ConsumerToolbox\Convert:

Public Member Functions

 __construct (private readonly Transformation $from_string, private readonly Transformation $to_string)
 
 fromString ()
 
 toString ()
 

Detailed Description

Definition at line 25 of file Convert.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\ConsumerToolbox\Convert::__construct ( private readonly Transformation  $from_string,
private readonly Transformation  $to_string 
)

Definition at line 27 of file Convert.php.

30 {
31 }

Member Function Documentation

◆ fromString()

ILIAS\LegalDocuments\ConsumerToolbox\Convert::fromString ( )

Definition at line 33 of file Convert.php.

34 {
35 return $this->from_string;
36 }
A transformation is a function from one datatype to another.

Referenced by ILIAS\LegalDocuments\ConsumerToolbox\Marshal\nullable(), and ILIAS\TermsOfService\UserSettings\setting().

+ Here is the caller graph for this function:

◆ toString()

ILIAS\LegalDocuments\ConsumerToolbox\Convert::toString ( )

Definition at line 38 of file Convert.php.

39 {
40 return $this->to_string;
41 }

Referenced by ILIAS\LegalDocuments\ConsumerToolbox\Marshal\nullable(), and ILIAS\TermsOfService\UserSettings\setting().

+ Here is the caller graph for this function:

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