| 1 | <?php |
||
| 10 | class GeneratedIntegerIdEntity implements IntegerIdEntityInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | private $id; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return int |
||
| 19 | */ |
||
| 20 | 12 | public function getId(): ?int |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | public function isPersisted(): bool |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Checks if this entity represents the same entity as another one. Usually this is checked via the class and id. |
||
| 35 | * |
||
| 36 | * @param mixed $other |
||
| 37 | * |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function isSame($other): bool |
||
| 58 | } |
||
| 59 |