Created
June 2, 2017 10:19
-
-
Save zeromodule/a722f712b331308a83d0ae177ae98b11 to your computer and use it in GitHub Desktop.
This file contains 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 CoreDomain; | |
class Id | |
{ | |
private $value; | |
public function __construct($value) | |
{ | |
$this->value = (string)$value; | |
} | |
public function getValue() | |
{ | |
return $this->value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment