id; } /** * Set cmtsDeviceId * * @param integer $cmtsDeviceId * * @return Cablemodem */ public function setCmtsDeviceId($cmtsDeviceId) { $this->cmtsDeviceId = $cmtsDeviceId; return $this; } /** * Get cmtsDeviceId * * @return integer */ public function getCmtsDeviceId() { return $this->cmtsDeviceId; } /** * Set deviceId * * @param integer $deviceId * * @return Cablemodem */ public function setDeviceId($deviceId) { $this->deviceId = $deviceId; return $this; } /** * Get deviceId * * @return integer */ public function getDeviceId() { return $this->deviceId; } /** * Set ip * * @param string $ip * * @return Cablemodem */ public function setIp($ip) { $this->ip = $ip; return $this; } /** * Get ip * * @return string */ public function getIp() { return $this->ip; } /** * Set mac * * @param string $mac * * @return Cablemodem */ public function setMac($mac) { $this->mac = $mac; return $this; } /** * Get mac * * @return string */ public function getMac() { return strtoupper($this->mac); } /** * Set index * * @param string $index * * @return Cablemodem */ public function setIndex($index) { $this->index = $index; return $this; } /** * Get index * * @return string */ public function getIndex() { return $this->index; } /** * Set upIf * * @param string $upIf * * @return Cablemodem */ public function setUpIf($upIf) { $this->upIf = $upIf; return $this; } /** * Get upIf * * @return string */ public function getUpIf() { return $this->upIf; } /** * Set downIf * * @param string $downIf * * @return Cablemodem */ public function setDownIf($downIf) { $this->downIf = $downIf; return $this; } /** * Get downIf * * @return string */ public function getDownIf() { return $this->downIf; } /** * Set status * * @param boolean $status * * @return Cablemodem */ public function setStatus($status) { $this->status = $status; return $this; } /** * Get status * * @return boolean */ public function getStatus() { return $this->status; } /** * Set txPower * * @param string $txPower * * @return Cablemodem */ public function setTxPower($txPower) { $this->txPower = $txPower; return $this; } /** * Get txPower * */ public function getTxPower() { return $this->txPower; } /** * Set rxPower * * @param string $rxPower * * @return Cablemodem */ public function setRxPower($rxPower) { $this->rxPower = $rxPower; return $this; } /** * Get rxPower * * @return string */ public function getRxPower() { return $this->rxPower; } /** * Set signal * * @param string $signal * * @return Cablemodem */ public function setSignal($signal) { $this->signal = $signal; return $this; } /** * Get signal * */ public function getSignal() { return $this->signal; } /** * Set microreflection * * @param string $microreflection * * @return Cablemodem */ public function setMicroreflection($microreflection) { $this->microreflection = $microreflection; return $this; } /** * Get microreflection * */ public function getMicroreflection() { return $this->microreflection; } /** * Set correcteds * * @param integer $correcteds * * @return Cablemodem */ public function setCorrecteds($correcteds) { $this->correcteds = $correcteds; return $this; } /** * Get correcteds * * @return integer */ public function getCorrecteds() { return $this->correcteds; } /** * Set unerroreds * * @param integer $unerroreds * * @return Cablemodem */ public function setUnerroreds($unerroreds) { $this->unerroreds = $unerroreds; return $this; } /** * Get unerroreds * * @return integer */ public function getUnerroreds() { return $this->unerroreds; } /** * Set uncorrectables * * @param integer $uncorrectables * * @return Cablemodem */ public function setUncorrectables($uncorrectables) { $this->uncorrectables = $uncorrectables; return $this; } /** * Get uncorrectables * * @return integer */ public function getUncorrectables() { return $this->uncorrectables; } /** * Set uptime * * @param string $uptime * * @return Cablemodem */ public function setUptime($uptime) { $this->uptime = $uptime; return $this; } /** * Get uptime * * @return string */ public function getUptime() { return $this->uptime; } /** * Set updated * * @param \DateTime $updated * * @return Cablemodem */ public function setUpdated($updated) { $this->updated = $updated; return $this; } /** * Get updated * * @return \DateTime */ public function getUpdated() { return $this->updated; } /** * Set lat * * @param string $lat * * @return Cablemodem */ public function setLat($lat) { $this->lat = $lat; return $this; } /** * Get lat * * @return string */ public function getLat() { return (double) $this->lat; } /** * Set lng * * @param string $lng * * @return Cablemodem */ public function setLng($lng) { $this->lng = $lng; return $this; } /** * Get lng * * @return string */ public function getLng() { return (double) $this->lng; } /** * Set deviceServer * * @param \StatsBundle\Entity\DeviceServer $deviceServer * * @return Cablemodem */ public function setDeviceServer(\StatsBundle\Entity\DeviceServer $deviceServer = null) { $this->deviceServer = $deviceServer; return $this; } /** * Get deviceServer * * @return \StatsBundle\Entity\DeviceServer */ public function getDeviceServer() { return $this->deviceServer; } /** * Set rxPowerCmts * * @param string $rxPowerCmts * * @return Cablemodem */ public function setRxPowerCmts($rxPowerCmts) { $this->rxPowerCmts = $rxPowerCmts; return $this; } /** * Get rxPowerCmts * * @return string */ public function getRxPowerCmts() { return $this->rxPowerCmts; } /** * Set signalCmts * * @param string $signalCmts * * @return Cablemodem */ public function setSignalCmts($signalCmts) { $this->signalCmts = $signalCmts; return $this; } /** * Get signalCmts * */ public function getSignalCmts() { return $this->signalCmts; } /** * Set microreflectionCmts * * @param string $microreflectionCmts * * @return Cablemodem */ public function setMicroreflectionCmts($microreflectionCmts) { $this->microreflectionCmts = $microreflectionCmts; return $this; } /** * Get microreflectionCmts * */ public function getMicroreflectionCmts() { return $this->microreflectionCmts; } /** * @return string */ public function getCustomId() { return sprintf('%s~%s~%s', strtolower($this->mac), $this->cmtsDeviceId, $this->deviceServer->getId()); } /** * @return string */ public function __toString() { return sprintf('%s', strtoupper($this->mac)); } /** * Set inOctets * * @param float $inOctets * * @return Cablemodem */ public function setInOctets($inOctets) { $this->inOctets = $inOctets; return $this; } /** * Get inOctets * * @return float */ public function getInOctets() { return (float) $this->inOctets; } /** * Set outOctets * * @param float $outOctets * * @return Cablemodem */ public function setOutOctets($outOctets) { $this->outOctets = $outOctets; return $this; } /** * Get outOctets * * @return float */ public function getOutOctets() { return (float) $this->outOctets; } }