for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MessageApp\User;
use Rhumsaa\Uuid\Uuid;
class ApplicationUserId
{
/**
* @var string
*/
private $id;
* Constructor
*
* @param string $id
public function __construct($id = null)
$this->id = (string) (($id) ? $id : $this->generateId());
}
* @return string
public function getId()
return $this->id;
public function __toString()
protected function generateId()
return (string) Uuid::uuid4();