15 lines
169 B
PHP
15 lines
169 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Shared\DDD;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @template T of EntityId
|
||
|
|
*/
|
||
|
|
interface Entity
|
||
|
|
{
|
||
|
|
/** @return T */
|
||
|
|
public function id(): EntityId;
|
||
|
|
}
|