@@ 148-157 (lines=10) @@ | ||
145 | return $this->time; |
|
146 | } |
|
147 | ||
148 | public function setId($id) |
|
149 | { |
|
150 | if ($this->id === $id) { |
|
151 | return; |
|
152 | } |
|
153 | if ($this->id !== null) { |
|
154 | throw new \Exception('cannot reassign action id'); |
|
155 | } |
|
156 | $this->id = $id; |
|
157 | } |
|
158 | ||
159 | public function setSale(SaleInterface $sale) |
|
160 | { |
@@ 89-98 (lines=10) @@ | ||
86 | return $this->time; |
|
87 | } |
|
88 | ||
89 | public function setId($id) |
|
90 | { |
|
91 | if ($this->id === $id) { |
|
92 | return; |
|
93 | } |
|
94 | if ($this->id !== null) { |
|
95 | throw new \Exception('cannot reassign sale id'); |
|
96 | } |
|
97 | $this->id = $id; |
|
98 | } |
|
99 | } |
|
100 |
@@ 147-156 (lines=10) @@ | ||
144 | return $this->time; |
|
145 | } |
|
146 | ||
147 | public function setId($id) |
|
148 | { |
|
149 | if ($this->id === $id) { |
|
150 | return; |
|
151 | } |
|
152 | if ($this->id !== null) { |
|
153 | throw new \Exception('cannot reassign sale id'); |
|
154 | } |
|
155 | $this->id = $id; |
|
156 | } |
|
157 | ||
158 | public function jsonSerialize() |
|
159 | { |