| @@ 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 |
|
| @@ 153-162 (lines=10) @@ | ||
| 150 | $this->bill = $bill; |
|
| 151 | } |
|
| 152 | ||
| 153 | public function setId($id) |
|
| 154 | { |
|
| 155 | if ($this->id === $id) { |
|
| 156 | return; |
|
| 157 | } |
|
| 158 | if ($this->id !== null) { |
|
| 159 | throw new \Exception('cannot reassign sale id'); |
|
| 160 | } |
|
| 161 | $this->id = $id; |
|
| 162 | } |
|
| 163 | ||
| 164 | public function jsonSerialize() |
|
| 165 | { |
|