<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\DataReceptionRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: DataReceptionRepository::class)]
#[ApiResource]
class DataReception
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateEntered = null;
#[ORM\Column(length: 100, nullable: true)]
private ?string $type = null;
#[ORM\Column(length: 100, nullable: true)]
private ?string $status = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $data;
public function getId(): ?int
{
return $this->id;
}
public function getDateEntered(): ?\DateTimeInterface
{
return $this->dateEntered;
}
public function setDateEntered(?\DateTimeInterface $dateEntered): static
{
$this->dateEntered = $dateEntered;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): static
{
$this->type = $type;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): static
{
$this->status = $status;
return $this;
}
public function getData(): ?string
{
return $this->data;
}
public function setData(?string $data): static
{
$this->data = $data;
return $this;
}
}