Files
rmphp-skeleton/application/base/Domain/AbstractObject.php
2024-11-02 07:31:03 +03:00

18 lines
327 B
PHP

<?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;
}
}