1 | <?php |
||
13 | abstract class AbstractValuator implements ValuatorInterface { |
||
14 | |||
15 | /** |
||
16 | * The start date of the period over which we should reason about value |
||
17 | * |
||
18 | * @var /DateTime |
||
19 | */ |
||
20 | protected $start_date; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * The end date of the period over which we should reason about value |
||
25 | * @var /DateTime |
||
26 | */ |
||
27 | protected $end_date; |
||
28 | |||
29 | |||
30 | /** |
||
31 | * The unit involved |
||
32 | * @var |
||
33 | */ |
||
34 | protected $unit; |
||
35 | |||
36 | /** |
||
37 | * AbstractValuator constructor. |
||
38 | * @param \DateTime $start_date |
||
39 | * @param \DateTime $end_date |
||
40 | * @param \Roomify\Bat\Unit\Unit $unit |
||
41 | */ |
||
42 | public function __construct(\DateTime $start_date, \DateTime $end_date, Unit $unit) { |
||
47 | |||
48 | /** |
||
49 | * @param \DateTime $start_date |
||
50 | */ |
||
51 | public function setStartDate(\DateTime $start_date) { |
||
54 | |||
55 | /** |
||
56 | * @return \DateTime |
||
57 | */ |
||
58 | public function getStartDate() { |
||
61 | |||
62 | /** |
||
63 | * @param \DateTime $end_date |
||
64 | */ |
||
65 | public function setEndDate(\DateTime $end_date) { |
||
68 | |||
69 | /** |
||
70 | * @param \DateTime $end_date |
||
71 | * @return \DateTime |
||
72 | */ |
||
73 | public function getEndDate(\DateTime $end_date) { |
||
76 | |||
77 | /** |
||
78 | * @param \Roomify\Bat\Unit\Unit $unit |
||
79 | */ |
||
80 | public function setUnit(Unit $unit) { |
||
83 | |||
84 | /** |
||
85 | * @return \Roomify\Bat\Unit\Unit |
||
86 | */ |
||
87 | public function getUnit() { |
||
90 | |||
91 | /** |
||
92 | * @param $events |
||
93 | * @return mixed |
||
94 | */ |
||
95 | public abstract function determineValue($events); |
||
96 | |||
97 | } |
||
98 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.