| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 15 | abstract class AbstractEntityCreationUuidDto implements DataTransferObjectInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private static $entityFqn; |
||
| 21 | /** |
||
| 22 | * @var UuidInterface |
||
| 23 | */ |
||
| 24 | private $id; |
||
| 25 | |||
| 26 | public function __construct(string $entityFqn, UuidFactory $idFactory) |
||
| 27 | { |
||
| 28 | self::$entityFqn = $entityFqn; |
||
| 29 | $this->id = $entityFqn::buildUuid($idFactory); |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function getEntityFqn(): string |
||
| 33 | { |
||
| 34 | return self::$entityFqn; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getId(): UuidInterface |
||
| 40 | } |
||
| 41 | } |
||
| 42 |