ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Target.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class Target
24 {
29  public function __construct(private $path, private readonly string $command = '', private readonly array $query_params = [])
30  {
31  }
32 
36  public function guiPath()
37  {
38  return $this->path;
39  }
40 
41  public function command(): string
42  {
43  return $this->command;
44  }
45 
46  public function guiName(): string
47  {
48  $path = $this->guiPath();
49  return is_array($path) ? $path[count($path) - 1] : $path;
50  }
51 
55  public function queryParams(): array
56  {
57  return $this->query_params;
58  }
59 }
__construct(private $path, private readonly string $command='', private readonly array $query_params=[])
Definition: Target.php:29
$path
Definition: ltiservices.php:29