for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Entity\Traits;
use Doctrine\ORM\Mapping as ORM;
trait EntityNameTrait
{
/**
* @ORM\Column(type="string", length=255)
*/
private ?string $name;
private ?string $slug;
public function getName(): ?string
return $this->name;
}
public function setName(string $name): self
$this->name = $name;
return $this;
public function getSlug(): ?string
return $this->slug;
public function setSlug(string $slug): self
$this->slug = $slug;