ILIAS  release_7 Revision v7.30-3-g800a261c036
Separator.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
25
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 {
75 }
76}
An exception for terminatinating execution or to throw for unit testing.