for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
/**
* /src/Entity/Traits/Uuid.php
*
* @author TLe, Tarmo Leppänen <[email protected]>
*/
namespace App\Entity\Traits;
use App\Rest\UuidHelper;
use Ramsey\Uuid\UuidInterface;
* Trait Uuid
* @package App\Entity\Traits
trait Uuid
{
public function getUuid(): UuidInterface
return $this->id;
}
protected function createUuid(): UuidInterface
return UuidHelper::getFactory()->uuid1();