<?php declare(strict_types=1);namespace LenzPlatformClp\Core\Content\Clp;use Shopware\Core\Content\Product\ProductCollection;use Shopware\Core\Framework\DataAbstractionLayer\{Entity, EntityIdTrait};class ClpEntity extends Entity { use EntityIdTrait; /** * @var string */ protected $type; /** * @var string */ protected $slug; /** * @var string */ protected $name; /** * @var string */ protected $text; /** * @var string */ protected $image; /** * @var ProductCollection|null */ protected $products; public function getProducts(): ?ProductCollection { return $this->products; } public function setProducts(ProductCollection $products): void { $this->products = $products; } public function getType(): string { return $this->type; } public function setType(string $type): void { $this->type = $type; } public function getName(): ?string { return $this->name; } public function setName(string $name): void { $this->name = $name; } public function getSlug(): ?string { return $this->slug; } public function setSlug(string $slug): void { $this->slug = $slug; } public function getText(): ?string { return $this->text; } public function setText(string $text): void { $this->text = $text; } public function getImage(): ?string { return $this->image; } public function setImage(string $imageUrl): void { $this->image = $imageUrl; } public static function slugify(string $key) : string { return strtolower(str_replace([" ", ";", "_"], ["", "", ""], $key)); }}