ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
TopParentItem.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
31 
35 class TopParentItem extends AbstractParentItem implements
36  isTopItem,
37  hasTitle,
38  hasSymbol,
40 {
41  use hasSymbolTrait;
42 
43  protected string $title = '';
44 
45  protected bool $supports_async_loading = false;
46 
51  public function withTitle(string $title): hasTitle
52  {
53  $clone = clone($this);
54  $clone->title = $title;
55 
56  return $clone;
57  }
58 
62  public function getTitle(): string
63  {
64  return $this->title;
65  }
66 
68  {
69  $clone = clone($this);
70  $clone->supports_async_loading = $supported;
71 
72  return $clone;
73  }
74 
75  public function supportsAsynchronousLoading(): bool
76  {
78  }
79 }
Interface supportsAsynchronousLoading Types, which implement this interface, can load their content a...
trait hasSymbolTrait
Trait hasSymbolTrait.