ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Data\ClientId Class Reference
+ Collaboration diagram for ILIAS\Data\ClientId:

Public Member Functions

 __construct (string $clientId)
 ClientId constructor. More...
 
 toString ()
 
 __toString ()
 

Private Attributes

string $clientId
 

Detailed Description

Definition at line 14 of file ClientId.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Data\ClientId::__construct ( string  $clientId)

ClientId constructor.

Parameters
string$clientId

Definition at line 22 of file ClientId.php.

References ILIAS\Data\ClientId\$clientId.

23  {
24  if ($clientId === '') {
25  throw new \InvalidArgumentException('Empty $clientId');
26  }
27 
28  if (preg_match('/[^A-Za-z0-9#_\.\-]/', $clientId)) {
29  throw new \InvalidArgumentException('Invalid value for $clientId');
30  }
31 
32  $this->clientId = $clientId;
33  }

Member Function Documentation

◆ __toString()

ILIAS\Data\ClientId::__toString ( )

Definition at line 40 of file ClientId.php.

References ILIAS\Data\ClientId\toString().

40  : string
41  {
42  return $this->toString();
43  }
+ Here is the call graph for this function:

◆ toString()

ILIAS\Data\ClientId::toString ( )

Definition at line 35 of file ClientId.php.

References ILIAS\Data\ClientId\$clientId.

Referenced by ILIAS\Data\ClientId\__toString().

35  : string
36  {
37  return $this->clientId;
38  }
+ Here is the caller graph for this function:

Field Documentation

◆ $clientId

string ILIAS\Data\ClientId::$clientId
private

Definition at line 16 of file ClientId.php.

Referenced by ILIAS\Data\ClientId\__construct(), and ILIAS\Data\ClientId\toString().


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