src/Entity/DataReception.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\DataReceptionRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassDataReceptionRepository::class)]
  8. #[ApiResource]
  9. class DataReception
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  16.     private ?\DateTimeInterface $dateEntered null;
  17.     #[ORM\Column(length100nullabletrue)]
  18.     private ?string $type null;
  19.     #[ORM\Column(length100nullabletrue)]
  20.     private ?string $status null;
  21.     #[ORM\Column(typeTypes::TEXT)]
  22.     private ?string $data;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getDateEntered(): ?\DateTimeInterface
  28.     {
  29.         return $this->dateEntered;
  30.     }
  31.     public function setDateEntered(?\DateTimeInterface $dateEntered): static
  32.     {
  33.         $this->dateEntered $dateEntered;
  34.         return $this;
  35.     }
  36.     public function getType(): ?string
  37.     {
  38.         return $this->type;
  39.     }
  40.     public function setType(?string $type): static
  41.     {
  42.         $this->type $type;
  43.         return $this;
  44.     }
  45.     public function getStatus(): ?string
  46.     {
  47.         return $this->status;
  48.     }
  49.     public function setStatus(?string $status): static
  50.     {
  51.         $this->status $status;
  52.         return $this;
  53.     }
  54.     public function getData(): ?string
  55.     {
  56.         return $this->data;
  57.     }
  58.     public function setData(?string $data): static
  59.     {
  60.         $this->data $data;
  61.         return $this;
  62.     }
  63. }