<?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; } }