src/Entity/Paiement.php line 23
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use ApiPlatform\Metadata\Get;use ApiPlatform\Metadata\GetCollection;use App\Repository\PaiementRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;#[ORM\Entity(repositoryClass: PaiementRepository::class)]#[ApiResource(normalizationContext: ['groups' => ['read:paiement']],denormalizationContext: ['groups' => ['write:paiement']],operations: [new Get(),new GetCollection(),],paginationEnabled: true,paginationItemsPerPage: 30)]class Paiement{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]#[Groups(['read:paiement'])]private ?int $id = null;#[ORM\Column(length: 255)]#[Groups(['read:paiement'])]private ?string $nomPaiement = null;#[ORM\Column(length: 255)]#[Groups(['read:paiement'])]private ?string $adressePaiement = null;public function getId(): ?int{return $this->id;}public function getNomPaiement(): ?string{return $this->nomPaiement;}public function setNomPaiement(string $nomPaiement): self{$this->nomPaiement = $nomPaiement;return $this;}public function getAdressePaiement(): ?string{return $this->adressePaiement;}public function setAdressePaiement(string $adressePaiement): self{$this->adressePaiement = $adressePaiement;return $this;}}