ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
Counter.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
6 
9 
10 class Counter implements Spec {
11  use ComponentHelper;
12 
13  private static $types = array
14  ( self::NOVELTY
15  , self::STATUS
16  );
17 
21  private $type;
22 
26  private $number;
27 
32  public function __construct($type, $number) {
33  $this->checkArgIsElement("type", $type, self::$types, "counter type");
34  $this->checkIntArg("number", $number);
35  $this->type = $type;
36  $this->number = $number;
37  }
38 
42  public function getType() {
43  return $this->type;
44  }
45 
49  public function getNumber() {
50  return $this->number;
51  }
52 }
getNumber()
Get the number on the counter.int
Definition: Counter.php:49
getType()
Get the type of the counter.string One of the counter types.
Definition: Counter.php:42
Create styles array
The data for the language used.