ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
Separator.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
21 
25 
30 class Separator extends AbstractChildItem implements hasTitle, isChild
31 {
35  protected $visible_title = false;
39  protected $title = '';
40 
45  public function withTitle(string $title) : hasTitle
46  {
47  $clone = clone($this);
48  $clone->title = $title;
49 
50  return $clone;
51  }
52 
56  public function getTitle() : string
57  {
58  return $this->title;
59  }
60 
61  public function withVisibleTitle(bool $visible_title) : self
62  {
63  $clone = clone($this);
64  $clone->visible_title = $visible_title;
65 
66  return $clone;
67  }
68 
72  public function isTitleVisible() : bool
73  {
74  return $this->visible_title;
75  }
76 }