@@ 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 |
@@ 142-151 (lines=10) @@ | ||
139 | $this->comment = $comment; |
|
140 | } |
|
141 | ||
142 | public function setId($id) |
|
143 | { |
|
144 | if ($this->id === $id) { |
|
145 | return; |
|
146 | } |
|
147 | if ($this->id !== null) { |
|
148 | throw new \Exception('cannot reassign sale id'); |
|
149 | } |
|
150 | $this->id = $id; |
|
151 | } |
|
152 | ||
153 | public function jsonSerialize() |
|
154 | { |