<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\ArticleProductRepository") */class ArticleProduct{ /** * @ORM\Id() * * @ORM\GeneratedValue() * * @ORM\Column(type="integer") */ private $id; public function getId(): ?int { return $this->id; } /** * @ORM\Column(type="string", nullable=true) */ private $type; /** * @ORM\ManyToOne(targetEntity="App\Entity\Article", inversedBy="article_products") */ private $article; /** * @ORM\Column(name="product_stripe_id", type="string", length=255) */ private $product_stripe_id; /** * @return mixed */ public function getType() { return $this->type; } /** * @param mixed $type * * @return ArticleProduct */ public function setType($type) { $this->type = $type; return $this; } /** * @return mixed */ public function getArticle() { return $this->article; } /** * @param mixed $article * * @return ArticleProduct */ public function setArticle($article) { $this->article = $article; return $this; } /** * @return mixed */ public function getProductStripeId() { return $this->product_stripe_id; } /** * @param mixed $product_stripe_id * * @return ArticleProduct */ public function setProductStripeId($product_stripe_id) { $this->product_stripe_id = $product_stripe_id; return $this; }}