src/Entity/CRM/AwardsDraw.php line 10

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\AwardsDrawRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassAwardsDrawRepository::class)]
  7. class AwardsDraw
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'awardsDraws')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?Consultant $consultant null;
  16.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  17.     private ?\DateTimeInterface $dateAdded null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $type null;
  20.     #[ORM\Column]
  21.     private ?float $ammount null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getConsultant(): ?Consultant
  27.     {
  28.         return $this->consultant;
  29.     }
  30.     public function setConsultant(?Consultant $consultant): static
  31.     {
  32.         $this->consultant $consultant;
  33.         return $this;
  34.     }
  35.     public function getDateAdded(): ?\DateTimeInterface
  36.     {
  37.         return $this->dateAdded;
  38.     }
  39.     public function setDateAdded(\DateTimeInterface $dateAdded): static
  40.     {
  41.         $this->dateAdded $dateAdded;
  42.         return $this;
  43.     }
  44.     public function getType(): ?string
  45.     {
  46.         return $this->type;
  47.     }
  48.     public function setType(string $type): static
  49.     {
  50.         $this->type $type;
  51.         return $this;
  52.     }
  53.     public function getAmmount(): ?float
  54.     {
  55.         return $this->ammount;
  56.     }
  57.     public function setAmmount(float $ammount): static
  58.     {
  59.         $this->ammount $ammount;
  60.         return $this;
  61.     }
  62. }