src/Entity/ArticleProduct.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\ArticleProductRepository")
  6.  */
  7. class ArticleProduct
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      *
  12.      * @ORM\GeneratedValue()
  13.      *
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     /**
  22.      * @ORM\Column(type="string", nullable=true)
  23.      */
  24.     private $type;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\Article", inversedBy="article_products")
  27.      */
  28.     private $article;
  29.     /**
  30.      * @ORM\Column(name="product_stripe_id", type="string", length=255)
  31.      */
  32.     private $product_stripe_id;
  33.     /**
  34.      * @return mixed
  35.      */
  36.     public function getType()
  37.     {
  38.         return $this->type;
  39.     }
  40.     /**
  41.      * @param mixed $type
  42.      *
  43.      * @return ArticleProduct
  44.      */
  45.     public function setType($type)
  46.     {
  47.         $this->type $type;
  48.         return $this;
  49.     }
  50.     /**
  51.      * @return mixed
  52.      */
  53.     public function getArticle()
  54.     {
  55.         return $this->article;
  56.     }
  57.     /**
  58.      * @param mixed $article
  59.      *
  60.      * @return ArticleProduct
  61.      */
  62.     public function setArticle($article)
  63.     {
  64.         $this->article $article;
  65.         return $this;
  66.     }
  67.     /**
  68.      * @return mixed
  69.      */
  70.     public function getProductStripeId()
  71.     {
  72.         return $this->product_stripe_id;
  73.     }
  74.     /**
  75.      * @param mixed $product_stripe_id
  76.      *
  77.      * @return ArticleProduct
  78.      */
  79.     public function setProductStripeId($product_stripe_id)
  80.     {
  81.         $this->product_stripe_id $product_stripe_id;
  82.         return $this;
  83.     }
  84. }