src/Entity/OfferProduct.php line 9
<?phpnamespace App\Entity;use App\Repository\OfferProductRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: OfferProductRepository::class)]class OfferProduct{#[ORM\Id, ORM\GeneratedValue, ORM\Column(type: 'integer')]private int $id;#[ORM\Column(type: 'string', length: 255)]private string $name = '';#[ORM\Column(type: 'string', length: 255)]private string $slug;#[ORM\ManyToOne(targetEntity: Offer::class, inversedBy: 'offerProducts')]#[ORM\JoinColumn(nullable: false)]private ?Offer $offer;#[ORM\Column(type: 'integer')]private int $psProductId;public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}public function getSlug(): ?string{return $this->slug;}public function setSlug(string $slug): self{$this->slug = $slug;return $this;}public function getOffer(): ?Offer{return $this->offer;}public function setOffer(?Offer $offer): self{$this->offer = $offer;return $this;}public function getPsProductId(): ?int{return $this->psProductId;}public function setPsProductId(int $psProductId): self{$this->psProductId = $psProductId;return $this;}}