Skip to content

Instantly share code, notes, and snippets.

@leopro
Created January 20, 2015 12:34
Show Gist options
  • Save leopro/0f8e18bfa5e42756c846 to your computer and use it in GitHub Desktop.
Save leopro/0f8e18bfa5e42756c846 to your computer and use it in GitHub Desktop.
Acme\Uuid:
type: embeddable
id:
uuid:
type: string
length: 36
<?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