ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ScaleBar.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
23 use ILIAS\UI\Component as C;
25 
30 class 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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...