|
@@ -148,6 +148,20 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
* @Assert\Callback({"FTTHBundle\Validator\ONUPositionValidator", "validate"})
|
|
|
*/
|
|
|
private $position = 0;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var int
|
|
|
+ *
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ protected $slot;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var int
|
|
|
+ *
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ protected $link;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -470,7 +484,47 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getSlot()
|
|
|
+ {
|
|
|
+ return $this->slot;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getLink()
|
|
|
+ {
|
|
|
+ return $this->link;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param int $slot
|
|
|
+ *
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setSlot($slot)
|
|
|
+ {
|
|
|
+ $this->slot = $slot;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
|
|
|
+ /**
|
|
|
+ * @param int $link
|
|
|
+ *
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setLink($link)
|
|
|
+ {
|
|
|
+ $this->link = $link;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Si la ONU no tiene NAP retorna 0
|
|
|
* De lo contrario recorre y retorna la primer position
|