ILIAS  release_8 Revision v8.23
TopLinkItem.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
32 
38 {
40  use hasSymbolTrait;
42 
43  protected bool $is_external_action = false;
44 
45  protected string $title = '';
46 
47  protected string $action = '';
48 
53  public function withTitle(string $title): hasTitle
54  {
55  $clone = clone($this);
56  $clone->title = $title;
57 
58  return $clone;
59  }
60 
64  public function getTitle(): string
65  {
66  return $this->title;
67  }
68 
73  public function withAction(string $action): hasAction
74  {
75  $clone = clone($this);
76  $clone->action = $action;
77 
78  return $clone;
79  }
80 
84  public function getAction(): string
85  {
86  return $this->action;
87  }
88 
93  public function withIsLinkToExternalAction(bool $is_external): hasAction
94  {
95  $clone = clone $this;
96  $clone->is_external_action = $is_external;
97 
98  return $clone;
99  }
100 
104  public function isLinkWithExternalAction(): bool
105  {
107  }
108 }
Interface hasSymbol Methods for Entries with Symbols.
Definition: hasSymbol.php:32
trait hasSymbolTrait
Trait hasSymbolTrait.