20241102#1

This commit is contained in:
User
2024-11-02 07:31:03 +03:00
parent 1b0af12a46
commit 035f88ea72
33 changed files with 56 additions and 54 deletions

View File

@@ -0,0 +1,17 @@
<?php
/**
* Created by PhpStorm.
* User: Zuev Yuri
*/
namespace Base\Domain;
abstract class AbstractObject implements EntityInterface {
/**
* @return int|null
*/
public function getId(): mixed {
return (isset($this->id)) ? (($this->id instanceof ValueObjectInterface) ? $this->id->get() : $this->id) : null;
}
}