ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Link.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 namespace ILIAS\Data;
6 
12 class Link
13 {
14  protected string $label;
15  protected URI $url;
16 
17  public function __construct(string $label, URI $url)
18  {
19  $this->label = $label;
20  $this->url = $url;
21  }
22 
23  public function getLabel(): string
24  {
25  return $this->label;
26  }
27 
28  public function getURL(): URI
29  {
30  return $this->url;
31  }
32 }
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:34