@@ 109-116 (lines=8) @@ | ||
106 | * |
|
107 | * @throws InvalidArgumentException |
|
108 | */ |
|
109 | public function setId($id) |
|
110 | { |
|
111 | if (is_integer($id) || is_float($id)) { |
|
112 | $this->id = $id; |
|
113 | } else { |
|
114 | throw new InvalidArgumentException(); |
|
115 | } |
|
116 | } |
|
117 | ||
118 | /** |
|
119 | * @return string |
@@ 179-186 (lines=8) @@ | ||
176 | * |
|
177 | * @throws InvalidArgumentException |
|
178 | */ |
|
179 | public function setId($id) |
|
180 | { |
|
181 | if (is_integer($id) || is_float($id) || is_string($id)) { |
|
182 | $this->id = $id; |
|
183 | } else { |
|
184 | throw new InvalidArgumentException(); |
|
185 | } |
|
186 | } |
|
187 | ||
188 | /** |
|
189 | * @return string |