for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Loevgaard\SyliusBrandPlugin\Entity;
class Brand implements BrandInterface
{
use ProductsAwareTrait,
ImagesAwareTrait;
/**
* @var int
*/
protected $id;
* @var string
protected $slug;
protected $name;
public function __construct()
$this->initializeImagesCollection();
$this->initializeProductsCollection();
}
* {@inheritdoc}
public function __toString(): string
return (string) $this->getName();
public function getId(): ?int
return $this->id;
public function getSlug(): ?string
return $this->slug;
public function setSlug(string $slug): void
$this->slug = $slug;
public function getName(): ?string
return $this->name;
public function setName(string $name): void
$this->name = $name;