<?php
declare(strict_types=1);
namespace App\Entity\Product;
use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Core\Model\ProductVariant as BaseProductVariant;
use Sylius\Component\Product\Model\ProductVariantTranslationInterface;
/**
* @ORM\Entity
* @ORM\Table(name="sylius_product_variant")
*/
class ProductVariant extends BaseProductVariant
{
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $shortname;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $synapsCode;
protected function createTranslation(): ProductVariantTranslationInterface
{
return new ProductVariantTranslation();
}
public function getShortname(): ?string
{
return $this->shortname;
}
public function setShortname(?string $shortname): self
{
$this->shortname = $shortname;
return $this;
}
/**
* @return mixed
*/
public function getSynapsCode()
{
return $this->synapsCode;
}
/**
* @param mixed $synapsCode
* @return Product
*/
public function setSynapsCode($synapsCode)
{
$this->synapsCode = $synapsCode;
return $this;
}
}