<?php
namespace App\Entity;
use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
use Doctrine\ORM\Mapping as ORM;
/**
* @Doctrine\ORM\Mapping\Entity
* @Doctrine\ORM\Mapping\Table(name="sub_product_translation")
*/
class SubProductTranslation implements TranslationInterface, BlameableInterface, TimestampableInterface, SoftDeletableInterface {
use TranslationTrait;
use BlameableTrait;
use TimestampableTrait;
use SoftDeletableTrait;
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @Doctrine\ORM\Mapping\Column(type="string", length=255)
*/
protected $name;
/**
* @Doctrine\ORM\Mapping\Column(type="float", nullable=true)
*/
protected $price;
/**
* @Doctrine\ORM\Mapping\Column(type="float", nullable=true)
*/
protected $beforeDiscountPrice;
/**
* @Doctrine\ORM\Mapping\Column(type="string", nullable=true)
*/
protected $rebate;
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getPrice(): ?float
{
return $this->price;
}
public function setPrice(?float $price): self
{
$this->price = $price;
return $this;
}
public function getRebate(): ?string
{
return $this->rebate;
}
public function setRebate(?string $rebate): self
{
$this->rebate = $rebate;
return $this;
}
/**
* @return mixed
*/
public function getBeforeDiscountPrice()
{
return $this->beforeDiscountPrice;
}
/**
* @param mixed $beforeDiscountPrice
*/
public function setBeforeDiscountPrice($beforeDiscountPrice): void
{
$this->beforeDiscountPrice = $beforeDiscountPrice;
}
}