number = $number; return $this; } /** * Get number * * @return integer */ public function getNumber() { return $this->number; } /** * Set type * * @param string $type * * @return ServicePort */ public function setType($type) { $this->type = $type; return $this; } /** * Get type * * @return string */ public function getType() { return $this->type; } /** * Set olt * * @param \FTTHBundle\Entity\OLT $olt * * @return ServicePort */ public function setOlt(\FTTHBundle\Entity\OLT $olt = null) { $this->olt = $olt; return $this; } /** * Get olt * * @return \FTTHBundle\Entity\OLT */ public function getOlt() { return $this->olt; } /** * Set onu * * @param \FTTHBundle\Entity\ONU $onu * * @return ServicePort */ public function setOnu(\FTTHBundle\Entity\ONU $onu = null) { $this->onu = $onu; return $this; } /** * Get onu * * @return \FTTHBundle\Entity\ONU */ public function getOnu() { return $this->onu; } /** * Get id * * @return integer */ public function getId() { return $this->id; } public function __toString(){ return (string)$this->number; } /** * Set gemport * * @param integer $gemport * * @return ServicePort */ public function setGemport($gemport) { $this->gemport = $gemport; return $this; } /** * Get gemport * * @return integer */ public function getGemport() { return $this->gemport; } /** * Set vlan * * @param integer $vlan * * @return ServicePort */ public function setVlan($vlan) { $this->vlan = $vlan; return $this; } /** * Get vlan * * @return integer */ public function getVlan() { return $this->vlan; } }