| @@ 92-99 (lines=8) @@ | ||
| 89 | * |
|
| 90 | * @return int |
|
| 91 | */ |
|
| 92 | public function getId() |
|
| 93 | { |
|
| 94 | if (null === $this->id) { |
|
| 95 | static::$idGenerator += 1; |
|
| 96 | $this->id = static::$idGenerator; |
|
| 97 | } |
|
| 98 | return $this->id; |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||
| @@ 193-200 (lines=8) @@ | ||
| 190 | * |
|
| 191 | * @return int |
|
| 192 | */ |
|
| 193 | public function getId() |
|
| 194 | { |
|
| 195 | if (null === $this->id) { |
|
| 196 | static::$idGenerator += 1; |
|
| 197 | $this->id = static::$idGenerator; |
|
| 198 | } |
|
| 199 | return $this->id; |
|
| 200 | } |
|
| 201 | } |
|
| 202 | ||