feat(person): initial Person domain with entity, model and DTO
PHP Unit Tests / test (push) Has been cancelled
PHP Unit Tests / test (push) Has been cancelled
- Add PersonEntity in Data layer with Doctrine ORM attributes - Add PersonModel in Logic layer for business logic - Add immutable PersonDto in Shared layer - Configure doctrine/orm dependency in composer.json - Add Doctrine deprecation triggers to phpunit configuration
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Shared\Person\DTO;
|
||||
|
||||
readonly final class PersonDto
|
||||
{
|
||||
public function __construct(
|
||||
public int $id,
|
||||
public string $anrede,
|
||||
public string $vorname,
|
||||
public string $name,
|
||||
public string $geschlecht,
|
||||
public ?string $titel = null,
|
||||
public ?string $funktionstitel = null,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user