ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
ClientId.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
6
7
namespace
ILIAS\Data
;
8
14
class
ClientId
15
{
16
private
string
$clientId
;
17
22
public
function
__construct
(
string
$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
}
34
35
public
function
toString
(): string
36
{
37
return
$this->clientId
;
38
}
39
40
public
function
__toString
(): string
41
{
42
return
$this->
toString
();
43
}
44
}
ILIAS\Data\ClientId\$clientId
string $clientId
Definition:
ClientId.php:16
ILIAS\Data\ClientId\__construct
__construct(string $clientId)
ClientId constructor.
Definition:
ClientId.php:22
ILIAS\Data\ClientId\__toString
__toString()
Definition:
ClientId.php:40
ILIAS\Data\ClientId
Definition:
ClientId.php:14
ILIAS\Data\ClientId\toString
toString()
Definition:
ClientId.php:35
ILIAS\Data
Definition:
Alphanumeric.php:11
src
Data
ClientId.php
Generated on Wed Sep 3 2025 22:02:50 for ILIAS by
1.8.13 (using
Doxyfile
)