ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Factory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\UI\Component as C;
24 
25 class Factory implements C\Chart\Factory
26 {
28  protected Bar\Factory $bar_factory;
29 
30  public function __construct(
31  ProgressMeter\Factory $progressmeter_factory,
32  Bar\Factory $bar_factory
33  ) {
34  $this->progressmeter_factory = $progressmeter_factory;
35  $this->bar_factory = $bar_factory;
36  }
37 
38  public function scaleBar(array $items): ScaleBar
39  {
40  return new ScaleBar($items);
41  }
42 
43  public function progressMeter(): ProgressMeter\Factory
44  {
46  }
47 
48  public function bar(): Bar\Factory
49  {
50  return $this->bar_factory;
51  }
52 }
ProgressMeter Factory $progressmeter_factory
Definition: Factory.php:27
__construct(ProgressMeter\Factory $progressmeter_factory, Bar\Factory $bar_factory)
Definition: Factory.php:30