ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Horizontal.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2017 Alex Killing <killing@leifos.de> Extended GPL, see docs/LICENSE */
4
6
9
14{
16
20 protected $label;
21
22 public function __construct()
23 {
24 }
25
29 public function getLabel()
30 {
31 return $this->label;
32 }
33
37 public function withLabel($label)
38 {
39 $this->checkStringArg("label", $label);
40 $clone = clone $this;
41 $clone->label = $label;
42 return $clone;
43 }
44}
An exception for terminatinating execution or to throw for unit testing.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
trait ComponentHelper
Provides common functionality for component implementations.