| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class Client extends EntityWithEvents |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Email |
||
| 17 | * @ORM\Embedded(class = "App\Domain\ValueObjects\Email", columnPrefix = false) |
||
| 18 | */ |
||
| 19 | private $email; |
||
| 20 | |||
| 21 | protected function __construct(UuidInterface $id, Email $email) |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function register(UuidInterface $id, Email $email): Client |
||
| 34 | } |
||
| 35 | } |