src/Flexy/Apps/POSBundle/Entity/Caisse.php line 11

  1. <?php
  2. namespace App\Flexy\Apps\POSBundle\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\App\Flexy\Apps\POSBundle\Entity\CaisseRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ApiResource]
  7. #[ORM\Entity(repositoryClassCaisseRepository::class)]
  8. class Caisse
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'text'nullabletrue)]
  15.     private ?string $description null;
  16.     #[ORM\Column(type'datetime_immutable'nullabletrue)]
  17.     private ?\DateTimeImmutable $createdAt null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getDescription(): ?string
  23.     {
  24.         return $this->description;
  25.     }
  26.     public function setDescription(?string $description): self
  27.     {
  28.         $this->description $description;
  29.         return $this;
  30.     }
  31.     public function getCreatedAt(): ?\DateTimeImmutable
  32.     {
  33.         return $this->createdAt;
  34.     }
  35.     public function setCreatedAt(?\DateTimeImmutable $createdAt): self
  36.     {
  37.         $this->createdAt $createdAt;
  38.         return $this;
  39.     }
  40. }