123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <?php
- use Doctrine\ORM\Mapping as ORM;
- //use Doctrine\Common\Collections\ArrayCollection;
- /**
- * @ORM\Entity @ORM\Table(name="companies")
- */
- class Company extends BaseDBO
- {
- /**
- * @ORM\Id @ORM\Column(type="integer") @ORM\GeneratedValue
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(type="string")
- */
- private $name;
- /**
- * @var string
- *
- * @ORM\Column(type="string")
- */
- private $ceo;
- /**
- * @var string
- *
- * @ORM\Column(type="string")
- */
- private $address;
- /**
- * @var string
- *
- * @ORM\Column(type="string")
- */
- private $active;
- /**
- * @var string
- *
- * @ORM\Column(type="string")
- */
- private $logo;
-
- /**
- * @ORM\OneToMany(targetEntity="Account", mappedBy="company")
- * @var Bug[]
- */
- protected $assignedCompanies = null;
-
- public function __construct()
- {
- $this->assignedCompanies = new ArrayCollection();
- }
- public function getId(): int
- {
- return $this->id;
- }
- public function getName(): string
- {
- return $this->name;
- }
- public function setName(string $name): self
- {
- $this->name = $name;
- return $this;
- }
- public function getCeo(): string
- {
- return $this->ceo;
- }
- public function setCeo(string $ceo): self
- {
- $this->ceo = $ceo;
- return $this;
- }
- public function getAddress(): string
- {
- return $this->address;
- }
- public function setAddress(string $address): self
- {
- $this->address = $address;
- return $this;
- }
- public function getActive(): string
- {
- return $this->active;
- }
- public function setActive(string $active): self
- {
- $this->active = $active;
- return $this;
- }
- public function getLogo(): string
- {
- return $this->logo;
- }
- public function setLogo(string $logo): self
- {
- $this->logo = $logo;
- return $this;
- }
- }
|