ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
Separator.php
Go to the documentation of this file.
2 
6 
12 class Separator extends AbstractChildItem implements hasTitle, isChild
13 {
14 
18  protected $visible_title = false;
22  protected $title = '';
23 
24 
30  public function withTitle(string $title) : hasTitle
31  {
32  $clone = clone($this);
33  $clone->title = $title;
34 
35  return $clone;
36  }
37 
38 
42  public function getTitle() : string
43  {
44  return $this->title;
45  }
46 
47 
53  public function withVisibleTitle(bool $visible_title) : Separator
54  {
55  $clone = clone($this);
56  $clone->visible_title = $visible_title;
57 
58  return $clone;
59  }
60 
61 
65  public function isTitleVisible() : bool
66  {
67  return $this->visible_title;
68  }
69 }