src/Entity/CartProductParameterValue.php line 24

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="cart_product_parameter_values")
  17.  */
  18. class CartProductParameterValue implements BlameableInterfaceTimestampableInterface {
  19.     use BlameableTrait;
  20.     use TimestampableTrait;
  21.     /**
  22.      * @ORM\Id
  23.      * @ORM\Column(type="integer")
  24.      * @ORM\GeneratedValue(strategy="AUTO")
  25.      */
  26.     protected $id;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity="App\Entity\CartProduct", inversedBy="parameterValues")
  29.      */
  30.     private $cartProduct;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity="App\Entity\ProductParameter")
  33.      */
  34.     private $parameter;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity="App\Entity\ProductParameterValue")
  37.      */
  38.     private $parameterValue;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getCartProduct(): ?CartProduct
  44.     {
  45.         return $this->cartProduct;
  46.     }
  47.     public function setCartProduct(?CartProduct $cartProduct): self
  48.     {
  49.         $this->cartProduct $cartProduct;
  50.         return $this;
  51.     }
  52.     public function getParameter(): ?ProductParameter
  53.     {
  54.         return $this->parameter;
  55.     }
  56.     public function setParameter(?ProductParameter $parameter): self
  57.     {
  58.         $this->parameter $parameter;
  59.         return $this;
  60.     }
  61.     public function getParameterValue(): ?ProductParameterValue
  62.     {
  63.         return $this->parameterValue;
  64.     }
  65.     public function setParameterValue(?ProductParameterValue $parameterValue): self
  66.     {
  67.         $this->parameterValue $parameterValue;
  68.         return $this;
  69.     }
  70. }