Last active
October 31, 2021 23:17
-
-
Save ismail1432/70251339fab4b4eecff91a0a4915e5f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Domain; | |
final class UserId | |
{ | |
private string $id; | |
public function __construct(string $id) | |
{ | |
$this->id = $id; | |
} | |
public function getId(): string | |
{ | |
return $this->id; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment