jobtypes_rel = new ArrayCollection(); } /** * @ORM\Id @ORM\Column(type="integer") @ORM\GeneratedValue */ private $id; /** * @var string * * @ORM\Column(type="string") */ private $name; /** * @var boolean * * @ORM\Column(type="boolean") */ private $cmdlevel; /** * @var string * * @ORM\Column(type="string") */ private $phone; /** * @var string * * @ORM\Column(type="string") */ private $password; /** * @var string * * @ORM\Column(type="string") */ private $login; /** * @var string * * @ORM\Column(type="string") */ private $email; /** * @var string * * @ORM\Column(type="string") */ private $skype; /** * @var integer * * @ORM\Column(type="integer") */ private $active_company; /** * @var string * * @ORM\Column(type="string") */ private $active_device_id; /** * @var \DateTime * * @ORM\Column(type="datetime") */ private $created; /** * @var string * * @ORM\Column(type="string") */ private $jobtypes; /** * @var \DateTime * * @ORM\Column(type="datetime") */ private $last_seen_mobile; /** * @var \DateTime * * @ORM\Column(type="datetime") */ private $last_seen_web; /** * @ORM\ManyToOne(targetEntity="Company", inversedBy="assignedCompanies") */ protected $company; public function getCompany() { return $this->company; } public function setCompany($engineer) { $company->assignedCompanies($this); $this->company = $company; } public function getJobtypesRel() { return $this->jobtypes_rel; } public function getId() { return $this->id; } public function getName(): string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getCmdlevel(): bool { return $this->cmdlevel; } public function setCmdlevel(bool $cmdlevel): self { $this->cmdlevel = $cmdlevel; return $this; } public function getPhone() { return $this->phone; } public function setPhone(string $phone): self { $this->phone = $phone; return $this; } public function getPassword(): string { return $this->password; } public function setPassword(string $password): self { $this->password = $password; return $this; } public function getLogin(): string { return $this->login; } public function setLogin(string $login): self { $this->login = $login; return $this; } public function getEmail() { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getSkype() { return $this->skype; } public function setSkype(string $skype): self { $this->skype = $skype; return $this; } public function getActiveCompany(): int { return $this->active_company; } public function setActiveCompany(int $active_company): self { $this->active_company = $active_company; return $this; } public function getActiveDeviceId(): string { return $this->active_device_id; } public function setActiveDeviceId(string $active_device_id): self { $this->active_device_id = $active_device_id; return $this; } public function getCreated(): \DateTimeInterface { return $this->created; } public function setCreated(\DateTimeInterface $created): self { $this->created = $created; return $this; } public function getJobtypes(): string { return $this->jobtypes; } public function setJobtypes(string $jobtypes): self { $this->jobtypes = $jobtypes; return $this; } public function getLastSeenMobile(): \DateTimeInterface { return $this->last_seen_mobile; } public function setLastSeenMobile(\DateTimeInterface $last_seen_mobile): self { $this->last_seen_mobile = $last_seen_mobile; return $this; } public function getLastSeenWeb(): \DateTimeInterface { return $this->last_seen_web; } public function setLastSeenWeb(\DateTimeInterface $last_seen_web): self { $this->last_seen_web = $last_seen_web; return $this; } public function addAcoountJobtypes(Jobtype $jobtype) { return $this->jobtypes_rel[] = $jobtype; } }