<?phpnamespace App\Entity;use App\Repository\CardRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=CardRepository::class) */class Card{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $stripeId; /** * @ORM\Column(type="boolean") */ private $actif = false; /** * @ORM\OneToOne(targetEntity=Abonnement::class, inversedBy="card", cascade={"persist", "remove"}) */ private $abonnement; /** * @ORM\ManyToOne(targetEntity=Enterprise::class, inversedBy="cards") */ private $enterprise; public function getId(): ?int { return $this->id; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getStripeId(): ?string { return $this->stripeId; } public function setStripeId(string $stripeId): self { $this->stripeId = $stripeId; return $this; } public function getActif(): ?bool { return $this->actif; } public function setActif(bool $actif): self { $this->actif = $actif; return $this; } public function getAbonnement(): ?Abonnement { return $this->abonnement; } public function setAbonnement(?Abonnement $abonnement): self { $this->abonnement = $abonnement; return $this; } public function getEnterprise(): ?Enterprise { return $this->enterprise; } public function setEnterprise(?Enterprise $enterprise): self { $this->enterprise = $enterprise; return $this; }}