|
@@ -64,48 +64,80 @@ class Lease4
|
|
|
{
|
|
|
return long2ip($this->address);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
public function getHwaddr()
|
|
|
{
|
|
|
return bin2hex($this->hwaddr);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param string $hwaddr
|
|
|
+ *
|
|
|
+ * @return Lease4
|
|
|
+ */
|
|
|
public function setHwaddr($hwaddr)
|
|
|
{
|
|
|
$this->hwaddr = $hwaddr;
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
public function getClientId()
|
|
|
{
|
|
|
return bin2hex($this->client_id);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param string $client_id
|
|
|
+ *
|
|
|
+ * @return Lease4
|
|
|
+ */
|
|
|
public function setClientId($client_id)
|
|
|
{
|
|
|
$this->client_id = $client_id;
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
public function getValidLifetime()
|
|
|
{
|
|
|
return $this->valid_lifetime;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param int $valid_lifetime
|
|
|
+ *
|
|
|
+ * @return Lease4
|
|
|
+ */
|
|
|
public function setValidLifetime($valid_lifetime)
|
|
|
{
|
|
|
$this->valid_lifetime = $valid_lifetime;
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return DateTime
|
|
|
+ */
|
|
|
public function getExpire()
|
|
|
{
|
|
|
return $this->expire;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param DateTime $expire
|
|
|
+ *
|
|
|
+ * @return Lease4
|
|
|
+ */
|
|
|
public function setExpire($expire)
|
|
|
{
|
|
|
$this->expire = $expire;
|