src/Entity/ProjectAddendumCosts.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectAddendumCostsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProjectAddendumCostsRepository::class)
  7.  */
  8. class ProjectAddendumCosts
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Projects::class, inversedBy="projectAddendumCosts")
  18.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  19.      */
  20.     private $project;
  21.     /**
  22.      * @ORM\Column(type="datetime_immutable")
  23.      */
  24.     private $added_at;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="projectAddendumCosts")
  27.      * @ORM\JoinColumn(onDelete="SET NULL")
  28.      */
  29.     private $added_by;
  30.     /**
  31.      * @ORM\Column(type="decimal", precision=15, scale=2)
  32.      */
  33.     private $amount;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getProject(): ?Projects
  39.     {
  40.         return $this->project;
  41.     }
  42.     public function setProject(?Projects $project): self
  43.     {
  44.         $this->project $project;
  45.         return $this;
  46.     }
  47.     public function getAddedAt(): ?\DateTimeImmutable
  48.     {
  49.         return $this->added_at;
  50.     }
  51.     public function setAddedAt(\DateTimeImmutable $added_at): self
  52.     {
  53.         $this->added_at $added_at;
  54.         return $this;
  55.     }
  56.     public function getAddedBy(): ?User
  57.     {
  58.         return $this->added_by;
  59.     }
  60.     public function setAddedBy(?User $added_by): self
  61.     {
  62.         $this->added_by $added_by;
  63.         return $this;
  64.     }
  65.     public function getAmount(): ?string
  66.     {
  67.         return $this->amount;
  68.     }
  69.     public function setAmount(string $amount): self
  70.     {
  71.         $this->amount $amount;
  72.         return $this;
  73.     }
  74. }