|
@@ -185,6 +185,27 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
*/
|
|
|
protected $backups;
|
|
|
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", options={"unsigned":true, "default":0})
|
|
|
+ */
|
|
|
+ protected $timeDiscovery = 0;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\ManyToOne(targetEntity="Profile", fetch="EXTRA_LAZY")
|
|
|
+ * @ORM\JoinColumn(name="discovery_profile_id", referencedColumnName="id", onDelete="SET NULL")
|
|
|
+ *
|
|
|
+ * @JMS\MaxDepth(1)
|
|
|
+ */
|
|
|
+ protected $discoveryProfile;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var int
|
|
|
+ *
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private $clientId;
|
|
|
+
|
|
|
/**
|
|
|
* @return string
|
|
|
*/
|
|
@@ -735,5 +756,59 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getTimeDiscovery()
|
|
|
+ {
|
|
|
+ return $this->timeDiscovery;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param int $timeDiscovery
|
|
|
+ */
|
|
|
+ public function setTimeDiscovery($timeDiscovery)
|
|
|
+ {
|
|
|
+ $this->timeDiscovery = $timeDiscovery;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get clientId
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getClientId()
|
|
|
+ {
|
|
|
+ return $this->clientId;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param integer $clientId
|
|
|
+ * @return OLT
|
|
|
+ */
|
|
|
+ public function setClientId($clientId)
|
|
|
+ {
|
|
|
+ $this->clientId = $clientId;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return Profile
|
|
|
+ */
|
|
|
+ public function getDiscoveryProfile()
|
|
|
+ {
|
|
|
+ return $this->discoveryProfile;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param Profile $discoveryProfile
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function setDiscoveryProfile($discoveryProfile)
|
|
|
+ {
|
|
|
+ $this->discoveryProfile = $discoveryProfile;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
|
|
|
}
|