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