ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Usage.php
Go to the documentation of this file.
1 <?php
3 
4 class Usage
5 {
9  protected $subject;
10 
14  protected $count;
15 
20  public function __construct(Subject $subject, $count = 1)
21  {
22  $this->subject = $subject;
23  $this->count = (int)$count;
24  }
25 
29  public function increment($by = 1)
30  {
31  $this->count += (int)$by;
32  }
33 
37  public function getSubject()
38  {
39  return $this->subject;
40  }
41 
45  public function getCount()
46  {
47  return $this->count;
48  }
49 }
__construct(Subject $subject, $count=1)
Definition: Usage.php:20