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 
7 use ILIAS\UI\Component as C;
9 
13 class Horizontal implements C\Divider\Horizontal
14 {
15  use ComponentHelper;
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 }
trait ComponentHelper
Provides common functionality for component implementations.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.