ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Link.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Data;
22 
28 class Link
29 {
30  protected string $label;
31  protected URI $url;
32 
33  public function __construct(string $label, URI $url)
34  {
35  $this->label = $label;
36  $this->url = $url;
37  }
38 
39  public function getLabel(): string
40  {
41  return $this->label;
42  }
43 
44  public function getURL(): URI
45  {
46  return $this->url;
47  }
48 }