<?php declare(strict_types=1);
namespace Shopware\Core\System\Unit;
use Shopware\Core\Content\Product\ProductCollection;
use Shopware\Core\Framework\DataAbstractionLayer\Entity;
use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
use Shopware\Core\System\Unit\Aggregate\UnitTranslation\UnitTranslationCollection;
class UnitEntity extends Entity
{
use EntityIdTrait;
use EntityCustomFieldsTrait;
/**
* @var string|null
*/
protected $shortCode;
/**
* @var string|null
*/
protected $name;
/**
* @var UnitTranslationCollection|null
*/
protected $translations;
/**
* @var ProductCollection|null
*/
protected $products;
public function getShortCode(): ?string
{
return $this->shortCode;
}
public function setShortCode(?string $shortCode): void
{
$this->shortCode = $shortCode;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): void
{
$this->name = $name;
}
public function getTranslations(): ?UnitTranslationCollection
{
return $this->translations;
}
public function setTranslations(UnitTranslationCollection $translations): void
{
$this->translations = $translations;
}
public function getProducts(): ?ProductCollection
{
return $this->products;
}
public function setProducts(ProductCollection $products): void
{
$this->products = $products;
}
}