email address value object skeleton
This commit is contained in:
parent
1c6fd5047a
commit
1f1a5cb827
1 changed files with 18 additions and 0 deletions
18
app/ValueObjects/EmailAddress.php
Normal file
18
app/ValueObjects/EmailAddress.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace App\ValueObjects;
|
||||
|
||||
class EmailAddress
|
||||
{
|
||||
private string $normalized;
|
||||
|
||||
public function __construct(string $email)
|
||||
{
|
||||
$this->normalized = $email;
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return $this->normalized;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue