src/Flexy/ShopBundle/Entity/Payment/Bank.php line 11

  1. <?php
  2. namespace App\Flexy\ShopBundle\Entity\Payment;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\Flexy\ShopBundle\Entity\Payment\BankRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassBankRepository::class)]
  7. #[ApiResource]
  8. class Bank
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $name null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $logo null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getName(): ?string
  23.     {
  24.         return $this->name;
  25.     }
  26.     public function setName(string $name): self
  27.     {
  28.         $this->name $name;
  29.         return $this;
  30.     }
  31.     public function getLogo(): ?string
  32.     {
  33.         return $this->logo;
  34.     }
  35.     public function setLogo(?string $logo): self
  36.     {
  37.         $this->logo $logo;
  38.         return $this;
  39.     }
  40. }