ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Horizontal.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\UI\Implementation\Component\ComponentHelper;
25
30{
31 use ComponentHelper;
32
33 protected ?string $label = null;
34
35 public function __construct()
36 {
37 }
38
42 public function getLabel(): ?string
43 {
44 return $this->label;
45 }
46
50 public function withLabel(string $label): C\Divider\Horizontal
51 {
52 $this->checkStringArg("label", $label);
53 $clone = clone $this;
54 $clone->label = $label;
55 return $clone;
56 }
57}