src/Entity/OrderProductParameterValue.php line 28

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\Model\Blameable\BlameableTrait;
  6. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  7. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  8. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Symfony\Component\Validator\Constraints as Assert;
  11. use Symfony\Component\HttpFoundation\File\UploadedFile;
  12. use Symfony\Component\HttpFoundation\File\File;
  13. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  14. /**
  15.  * @ORM\Entity
  16.  * @ORM\Table(name="order_product_parameter_values")
  17.  */
  18. class OrderProductParameterValue implements BlameableInterfaceTimestampableInterfaceSoftDeletableInterface  {
  19.     use BlameableTrait;
  20.     use TimestampableTrait;
  21.     
  22.     use SoftDeletableTrait;
  23.     
  24. /**
  25.      * @ORM\Id
  26.      * @ORM\Column(type="integer")
  27.      * @ORM\GeneratedValue(strategy="AUTO")
  28.      */
  29.     protected $id;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity="App\Entity\OrderProduct", inversedBy="parameterValues")
  32.      */
  33.     private $orderProduct;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity="App\Entity\ProductParameter")
  36.      */
  37.     private $parameter;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity="App\Entity\ProductParameterValue")
  40.      */
  41.     private $parameterValue;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getOrderProduct(): ?OrderProduct
  47.     {
  48.         return $this->orderProduct;
  49.     }
  50.     public function setOrderProduct(?OrderProduct $orderProduct): self
  51.     {
  52.         $this->orderProduct $orderProduct;
  53.         return $this;
  54.     }
  55.     public function getParameter(): ?ProductParameter
  56.     {
  57.         return $this->parameter;
  58.     }
  59.     public function setParameter(?ProductParameter $parameter): self
  60.     {
  61.         $this->parameter $parameter;
  62.         return $this;
  63.     }
  64.     public function getParameterValue(): ?ProductParameterValue
  65.     {
  66.         return $this->parameterValue;
  67.     }
  68.     public function setParameterValue(?ProductParameterValue $parameterValue): self
  69.     {
  70.         $this->parameterValue $parameterValue;
  71.         return $this;
  72.     }
  73. }