ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ScaleBar.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\UI\Implementation\Component\ComponentHelper;
25
30class ScaleBar implements C\Chart\ScaleBar
31{
32 use ComponentHelper;
33
34 protected array $items;
35
36 public function __construct($items)
37 {
38 $this->items = $items;
39 }
40
44 public function withItems(array $items): C\Chart\ScaleBar
45 {
46 $clone = clone $this;
47 $clone->items = $items;
48 return $clone;
49 }
50
54 public function getItems(): array
55 {
56 return $this->items;
57 }
58}