Company.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. //use Doctrine\Common\Collections\ArrayCollection;
  4. /**
  5. * @ORM\Entity @ORM\Table(name="companies")
  6. */
  7. class Company extends BaseDBO
  8. {
  9. /**
  10. * @ORM\Id @ORM\Column(type="integer") @ORM\GeneratedValue
  11. */
  12. private $id;
  13. /**
  14. * @var string
  15. *
  16. * @ORM\Column(type="string")
  17. */
  18. private $name;
  19. /**
  20. * @var string
  21. *
  22. * @ORM\Column(type="string")
  23. */
  24. private $ceo;
  25. /**
  26. * @var string
  27. *
  28. * @ORM\Column(type="string")
  29. */
  30. private $address;
  31. /**
  32. * @var string
  33. *
  34. * @ORM\Column(type="string")
  35. */
  36. private $active;
  37. /**
  38. * @var string
  39. *
  40. * @ORM\Column(type="string")
  41. */
  42. private $logo;
  43. /**
  44. * @ORM\OneToMany(targetEntity="Account", mappedBy="company")
  45. * @var Bug[]
  46. */
  47. protected $assignedCompanies = null;
  48. public function __construct()
  49. {
  50. $this->assignedCompanies = new ArrayCollection();
  51. }
  52. public function getId(): int
  53. {
  54. return $this->id;
  55. }
  56. public function getName(): string
  57. {
  58. return $this->name;
  59. }
  60. public function setName(string $name): self
  61. {
  62. $this->name = $name;
  63. return $this;
  64. }
  65. public function getCeo(): string
  66. {
  67. return $this->ceo;
  68. }
  69. public function setCeo(string $ceo): self
  70. {
  71. $this->ceo = $ceo;
  72. return $this;
  73. }
  74. public function getAddress(): string
  75. {
  76. return $this->address;
  77. }
  78. public function setAddress(string $address): self
  79. {
  80. $this->address = $address;
  81. return $this;
  82. }
  83. public function getActive(): string
  84. {
  85. return $this->active;
  86. }
  87. public function setActive(string $active): self
  88. {
  89. $this->active = $active;
  90. return $this;
  91. }
  92. public function getLogo(): string
  93. {
  94. return $this->logo;
  95. }
  96. public function setLogo(string $logo): self
  97. {
  98. $this->logo = $logo;
  99. return $this;
  100. }
  101. }