src/Entity/SubProductTranslation.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
  4. use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  6. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  7. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  8. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  9. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  10. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  11. use Doctrine\ORM\Mapping as ORM;
  12. /**
  13.  * @Doctrine\ORM\Mapping\Entity
  14.  * @Doctrine\ORM\Mapping\Table(name="sub_product_translation")
  15.  */
  16. class SubProductTranslation implements TranslationInterfaceBlameableInterfaceTimestampableInterfaceSoftDeletableInterface   {
  17.     use TranslationTrait;
  18. use BlameableTrait;
  19.     use TimestampableTrait;
  20.     
  21.     use SoftDeletableTrait;
  22.     
  23.     /**
  24.      * @ORM\Id
  25.      * @ORM\Column(type="integer")
  26.      * @ORM\GeneratedValue(strategy="AUTO")
  27.      */
  28.     protected $id;
  29.     /**
  30.      * @Doctrine\ORM\Mapping\Column(type="string", length=255)
  31.      */
  32.     protected $name;
  33.     /**
  34.      * @Doctrine\ORM\Mapping\Column(type="float", nullable=true)
  35.      */
  36.     protected $price;
  37.     /**
  38.      * @Doctrine\ORM\Mapping\Column(type="float", nullable=true)
  39.      */
  40.     protected $beforeDiscountPrice;
  41.     /**
  42.      * @Doctrine\ORM\Mapping\Column(type="string", nullable=true)
  43.      */
  44.     protected $rebate;
  45.     public function getName(): ?string
  46.     {
  47.         return $this->name;
  48.     }
  49.     public function setName(string $name): self
  50.     {
  51.         $this->name $name;
  52.         return $this;
  53.     }
  54.     public function getPrice(): ?float
  55.     {
  56.         return $this->price;
  57.     }
  58.     public function setPrice(?float $price): self
  59.     {
  60.         $this->price $price;
  61.         return $this;
  62.     }
  63.     public function getRebate(): ?string
  64.     {
  65.         return $this->rebate;
  66.     }
  67.     public function setRebate(?string $rebate): self
  68.     {
  69.         $this->rebate $rebate;
  70.         return $this;
  71.     }
  72.     /**
  73.      * @return mixed
  74.      */
  75.     public function getBeforeDiscountPrice()
  76.     {
  77.         return $this->beforeDiscountPrice;
  78.     }
  79.     /**
  80.      * @param mixed $beforeDiscountPrice
  81.      */
  82.     public function setBeforeDiscountPrice($beforeDiscountPrice): void
  83.     {
  84.         $this->beforeDiscountPrice $beforeDiscountPrice;
  85.     }
  86. }