ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\LegalDocuments\Value\Target Class Reference
+ Collaboration diagram for ILIAS\LegalDocuments\Value\Target:

Public Member Functions

 __construct ($path, private readonly string $command='', private readonly array $query_params=[])
 
 guiPath ()
 
 command ()
 
 guiName ()
 
 queryParams ()
 

Private Attributes

 $path
 

Detailed Description

Definition at line 23 of file Target.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\Value\Target::__construct (   $path,
private readonly string  $command = '',
private readonly array  $query_params = [] 
)
Parameters
string|list<string>$path
array<string,string>$query_params

Definition at line 34 of file Target.php.

References ILIAS\LegalDocuments\Value\Target\$path.

35  {
36  $this->path = $path;
37  }

Member Function Documentation

◆ command()

ILIAS\LegalDocuments\Value\Target::command ( )

Definition at line 47 of file Target.php.

47  : string
48  {
49  return $this->command;
50  }

◆ guiName()

ILIAS\LegalDocuments\Value\Target::guiName ( )

Definition at line 52 of file Target.php.

References ILIAS\LegalDocuments\Value\Target\$path, and ILIAS\LegalDocuments\Value\Target\guiPath().

52  : string
53  {
54  $path = $this->guiPath();
55  return is_array($path) ? $path[count($path) - 1] : $path;
56  }
+ Here is the call graph for this function:

◆ guiPath()

ILIAS\LegalDocuments\Value\Target::guiPath ( )
Returns
string|list<string>

Definition at line 42 of file Target.php.

References ILIAS\LegalDocuments\Value\Target\$path.

Referenced by ILIAS\LegalDocuments\Value\Target\guiName().

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

◆ queryParams()

ILIAS\LegalDocuments\Value\Target::queryParams ( )
Returns
array<string, string>

Definition at line 61 of file Target.php.

61  : array
62  {
63  return $this->query_params;
64  }

Field Documentation

◆ $path

ILIAS\LegalDocuments\Value\Target::$path
private

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