@@ 31-37 (lines=7) @@ | ||
28 | * @param $unit |
|
29 | * @param $value |
|
30 | */ |
|
31 | public function __construct(\DateTime $start_date, \DateTime $end_date, UnitInterface $unit, $value = 0) { |
|
32 | $this->unit_id = $unit->getUnitId(); |
|
33 | $this->unit = $unit; |
|
34 | $this->start_date = clone($start_date); |
|
35 | $this->end_date = clone($end_date); |
|
36 | $this->value = $value; |
|
37 | } |
|
38 | ||
39 | } |
|
40 |
@@ 50-55 (lines=6) @@ | ||
47 | * @param \DateTime $end_date |
|
48 | * @param \Roomify\Bat\Unit\UnitInterface $unit |
|
49 | */ |
|
50 | public function __construct(\DateTime $start_date, \DateTime $end_date, UnitInterface $unit, Store $store) { |
|
51 | $this->start_date = clone($start_date); |
|
52 | $this->end_date = clone($end_date); |
|
53 | $this->unit = $unit; |
|
54 | $this->store = $store; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @param \DateTime $start_date |