@@ 66-80 (lines=15) @@ | ||
63 | * @param QuantityInterface $quantity |
|
64 | * @param DateTime $time |
|
65 | */ |
|
66 | public function __construct( |
|
67 | $id, |
|
68 | TypeInterface $type, |
|
69 | TargetInterface $target, |
|
70 | QuantityInterface $quantity, |
|
71 | CustomerInterface $customer = null, |
|
72 | DateTime $time = null |
|
73 | ) { |
|
74 | $this->id = $id; |
|
75 | $this->type = $type; |
|
76 | $this->target = $target; |
|
77 | $this->quantity = $quantity; |
|
78 | $this->customer = $customer; |
|
79 | $this->time = $time; |
|
80 | } |
|
81 | ||
82 | /** |
|
83 | * {@inheritdoc} |
@@ 59-73 (lines=15) @@ | ||
56 | */ |
|
57 | protected $sum; |
|
58 | ||
59 | public function __construct( |
|
60 | $id, |
|
61 | ActionInterface $action = null, |
|
62 | TypeInterface $type = null, |
|
63 | TargetInterface $target = null, |
|
64 | QuantityInterface $usage, |
|
65 | Money $sum |
|
66 | ) { |
|
67 | $this->id = $id; |
|
68 | $this->action = $action; |
|
69 | $this->type = $type; |
|
70 | $this->target = $target; |
|
71 | $this->usage = $usage; |
|
72 | $this->sum = $sum; |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * Returns charge that is sum of given charges. |