| @@ 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 | { |
|
| @@ 132-141 (lines=10) @@ | ||
| 129 | return $this->id; |
|
| 130 | } |
|
| 131 | ||
| 132 | public function setId($id) |
|
| 133 | { |
|
| 134 | if ($this->id === $id) { |
|
| 135 | return; |
|
| 136 | } |
|
| 137 | if ($this->id !== null) { |
|
| 138 | throw new \Exception('cannot reassign bill id'); |
|
| 139 | } |
|
| 140 | $this->id = $id; |
|
| 141 | } |
|
| 142 | ||
| 143 | /** |
|
| 144 | * @return TypeInterface |
|
| @@ 177-186 (lines=10) @@ | ||
| 174 | return $this->parent !== null; |
|
| 175 | } |
|
| 176 | ||
| 177 | public function setId($id) |
|
| 178 | { |
|
| 179 | if ($this->id === $id) { |
|
| 180 | return; |
|
| 181 | } |
|
| 182 | if ($this->id !== null) { |
|
| 183 | throw new \Exception('cannot reassign action id'); |
|
| 184 | } |
|
| 185 | $this->id = $id; |
|
| 186 | } |
|
| 187 | ||
| 188 | public function setSale(SaleInterface $sale) |
|
| 189 | { |
|