src/Entity/ProductMediaDocument.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\ProductMediaDocumentRepository")
  6.  */
  7. class ProductMediaDocument
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      *
  12.      * @ORM\GeneratedValue()
  13.      *
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $stripe_id;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $price_id;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\Media", inversedBy="product_media_documents")
  27.      */
  28.     public $media;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getStripeId()
  34.     {
  35.         return $this->stripe_id;
  36.     }
  37.     public function setStripeId($stripe_id)
  38.     {
  39.         $this->stripe_id $stripe_id;
  40.         return $this;
  41.     }
  42.     public function getPriceId()
  43.     {
  44.         return $this->price_id;
  45.     }
  46.     public function setPriceId($price_id)
  47.     {
  48.         $this->price_id $price_id;
  49.         return $this;
  50.     }
  51.     public function getMedia()
  52.     {
  53.         return $this->media;
  54.     }
  55.     public function setMedia($media)
  56.     {
  57.         $this->media $media;
  58.         return $this;
  59.     }
  60. }