src/Entity/CartePaiement.php line 11
<?phpnamespace App\Entity;use App\Repository\CartePaiementRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: CartePaiementRepository::class)]class CartePaiement{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $nom = null;#[ORM\Column]private ?int $actif;#[ORM\OneToMany(mappedBy: 'cartePaiement', targetEntity: CartePaiementCamion::class)]private Collection $cartePaiementCamions;#[ORM\Column(length: 20)]private ?string $numero = null;public function __construct(){$this->cartePaiementCamions = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getNom(): ?string{return $this->nom;}public function setNom(string $nom): self{$this->nom = $nom;return $this;}public function __toString(){return $this->getNumero();}/*** @return Collection<int, CartePaiementCamion>*/public function getCartePaiementCamions(): Collection{return $this->cartePaiementCamions;}public function addCartePaiementCamion(CartePaiementCamion $cartePaiementCamion): self{if (!$this->cartePaiementCamions->contains($cartePaiementCamion)) {$this->cartePaiementCamions->add($cartePaiementCamion);$cartePaiementCamion->setCartePaiement($this);}return $this;}public function removeCartePaiementCamion(CartePaiementCamion $cartePaiementCamion): self{if ($this->cartePaiementCamions->removeElement($cartePaiementCamion)) {// set the owning side to null (unless already changed)if ($cartePaiementCamion->getCartePaiement() === $this) {$cartePaiementCamion->setCartePaiement(null);}}return $this;}public function getNumero(): ?string{return $this->numero;}public function setNumero(string $numero): self{$this->numero = $numero;return $this;}public function getActif(): ?int{return $this->actif;}public function setActif(int $actif): self{$this->actif = $actif;return $this;}}