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\Counter\Factory
26 {
27  public function status(int $number): Counter
28  {
29  return new Counter(C\Counter\Counter::STATUS, $number);
30  }
31 
32  public function novelty(int $number): Counter
33  {
34  return new Counter(C\Counter\Counter::NOVELTY, $number);
35  }
36 }