Created
January 20, 2015 12:34
-
-
Save leopro/0f8e18bfa5e42756c846 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
Acme\Uuid: | |
type: embeddable | |
id: | |
uuid: | |
type: string | |
length: 36 |
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 Acme | |
class Uuid | |
{ | |
private $uuid; | |
public function __construct($uuid) | |
{ | |
$this->uuid = $uuid; | |
} | |
public function __toString() | |
{ | |
return (string) $this->uuid; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment