ILIAS  release_7 Revision v7.30-3-g800a261c036
ScaleBar.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
7
12class ScaleBar implements C\Chart\ScaleBar
13{
15
19 protected $items;
20
24 public function __construct($items)
25 {
26 $this->items = $items;
27 }
28
32 public function withItems(array $items)
33 {
34 $clone = clone $this;
35 $clone->items = $items;
36 return $clone;
37 }
38
42 public function getItems()
43 {
44 return $this->items;
45 }
46}
An exception for terminatinating execution or to throw for unit testing.
trait ComponentHelper
Provides common functionality for component implementations.