src/Entity/Lote.php line 15

  1. <?php
  2. /*
  3.  *  @author Guerby Duval <info@tranzaksyon.com>
  4.  *  @link https://tranzaksyon.com
  5.  *  @copyright You are not allowed to remove this author "Guerby Duval <info@tranzaksyon.com>", the link "https://tranzaksyon.com" neither this copyright.
  6.  */
  7. namespace App\Entity;
  8. use App\Repository\LoteRepository;
  9. use Doctrine\DBAL\Types\Types;
  10. use Doctrine\ORM\Mapping as ORM;
  11. #[ORM\Entity(repositoryClassLoteRepository::class)]
  12. class Lote
  13. {
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue]
  16.     #[ORM\Column]
  17.     private ?int $id null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $number null;
  20.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  21.     private ?\DateTimeInterface $dateSent null;
  22.     #[ORM\OneToOne(inversedBy'lote'cascade: ['persist''remove'])]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private ?SriDocument $document null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getNumber(): ?string
  30.     {
  31.         return $this->number;
  32.     }
  33.     public function setNumber(string $number): static
  34.     {
  35.         $this->number $number;
  36.         return $this;
  37.     }
  38.     public function getDateSent(): ?\DateTimeInterface
  39.     {
  40.         return $this->dateSent;
  41.     }
  42.     public function setDateSent(\DateTimeInterface $dateSent): static
  43.     {
  44.         $this->dateSent $dateSent;
  45.         return $this;
  46.     }
  47.     public function getDocument(): ?SriDocument
  48.     {
  49.         return $this->document;
  50.     }
  51.     public function setDocument(SriDocument $document): static
  52.     {
  53.         $this->document $document;
  54.         return $this;
  55.     }
  56. }