src/Entity/Target.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TargetRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=TargetRepository::class)
  7. */
  8. class Target
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=SubsidiaryCompany::class, inversedBy="targets")
  18. * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  19. */
  20. private $subsidiaryCompany;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=Job::class, inversedBy="targets")
  23. * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  24. */
  25. private $job;
  26. /**
  27. * @ORM\ManyToOne(targetEntity=Office::class, inversedBy="targets")
  28. */
  29. private $office;
  30. /**
  31. * @ORM\ManyToOne(targetEntity=Contract::class, inversedBy="targets")
  32. */
  33. private $contract;
  34. /**
  35. * @ORM\ManyToOne(targetEntity=Program::class, inversedBy="targets")
  36. */
  37. private $program;
  38. /**
  39. * @ORM\ManyToOne(targetEntity=Module::class, inversedBy="targets")
  40. */
  41. private $module;
  42. public function getId(): ?int
  43. {
  44. return $this->id;
  45. }
  46. public function getSubsidiaryCompany(): ?SubsidiaryCompany
  47. {
  48. return $this->subsidiaryCompany;
  49. }
  50. public function setSubsidiaryCompany(?SubsidiaryCompany $subsidiaryCompany): self
  51. {
  52. $this->subsidiaryCompany = $subsidiaryCompany;
  53. return $this;
  54. }
  55. public function getJob(): ?Job
  56. {
  57. return $this->job;
  58. }
  59. public function setJob(?Job $job): self
  60. {
  61. $this->job = $job;
  62. return $this;
  63. }
  64. public function getOffice(): ?Office
  65. {
  66. return $this->office;
  67. }
  68. public function setOffice(?Office $office): self
  69. {
  70. $this->office = $office;
  71. return $this;
  72. }
  73. public function getContract(): ?Contract
  74. {
  75. return $this->contract;
  76. }
  77. public function setContract(?Contract $contract): self
  78. {
  79. $this->contract = $contract;
  80. return $this;
  81. }
  82. public function getProgram(): ?Program
  83. {
  84. return $this->program;
  85. }
  86. public function setProgram(?Program $program): self
  87. {
  88. $this->program = $program;
  89. return $this;
  90. }
  91. public function getModule(): ?Module
  92. {
  93. return $this->module;
  94. }
  95. public function setModule(?Module $module): self
  96. {
  97. $this->module = $module;
  98. return $this;
  99. }
  100. }