Unverified Commit 7e50f585 authored by Sam Williams's avatar Sam Williams Committed by GitHub
Browse files

Merge pull request #24 from Livda/master

fix return value for RData
parents f65cbf8f f967b247
......@@ -36,7 +36,7 @@ class A implements RdataInterface
/**
* @return string
*/
public function getAddress(): string
public function getAddress(): ?string
{
return $this->address;
}
......
......@@ -36,7 +36,7 @@ class CNAME implements RdataInterface
/**
* @return string
*/
public function getTarget(): string
public function getTarget(): ?string
{
return $this->target;
}
......
......@@ -41,7 +41,7 @@ class HINFO implements RdataInterface
/**
* @return string
*/
public function getCpu(): string
public function getCpu(): ?string
{
return $this->cpu;
}
......@@ -57,7 +57,7 @@ class HINFO implements RdataInterface
/**
* @return string
*/
public function getOs(): string
public function getOs(): ?string
{
return $this->os;
}
......
......@@ -74,7 +74,7 @@ class LOC implements RdataInterface
/**
* @param string $format
*
* @return float|string
* @return float|string|null
*/
public function getLatitude(string $format = self::FORMAT_DECIMAL)
{
......@@ -96,7 +96,7 @@ class LOC implements RdataInterface
/**
* @param string $format
*
* @return float|string
* @return float|string|null
*/
public function getLongitude(string $format = self::FORMAT_DECIMAL)
{
......
......@@ -41,7 +41,7 @@ class MX implements RdataInterface
/**
* @return string
*/
public function getExchange(): string
public function getExchange(): ?string
{
return $this->exchange;
}
......@@ -57,7 +57,7 @@ class MX implements RdataInterface
/**
* @return int
*/
public function getPreference(): int
public function getPreference(): ?int
{
return $this->preference;
}
......
......@@ -88,7 +88,7 @@ class SOA implements RdataInterface
/**
* @return int
*/
public function getExpire(): int
public function getExpire(): ?int
{
return $this->expire;
}
......@@ -104,7 +104,7 @@ class SOA implements RdataInterface
/**
* @return int
*/
public function getMinimum(): int
public function getMinimum(): ?int
{
return $this->minimum;
}
......@@ -120,7 +120,7 @@ class SOA implements RdataInterface
/**
* @return string
*/
public function getMname(): string
public function getMname(): ?string
{
return $this->mname;
}
......@@ -136,7 +136,7 @@ class SOA implements RdataInterface
/**
* @return int
*/
public function getRefresh(): int
public function getRefresh(): ?int
{
return $this->refresh;
}
......@@ -152,7 +152,7 @@ class SOA implements RdataInterface
/**
* @return int
*/
public function getRetry(): int
public function getRetry(): ?int
{
return $this->retry;
}
......@@ -168,7 +168,7 @@ class SOA implements RdataInterface
/**
* @return string
*/
public function getRname(): string
public function getRname(): ?string
{
return $this->rname;
}
......@@ -184,7 +184,7 @@ class SOA implements RdataInterface
/**
* @return int
*/
public function getSerial(): int
public function getSerial(): ?int
{
return $this->serial;
}
......
......@@ -61,7 +61,7 @@ class SRV extends CNAME
/**
* @return int
*/
public function getPriority(): int
public function getPriority(): ?int
{
return $this->priority;
}
......@@ -83,7 +83,7 @@ class SRV extends CNAME
/**
* @return int
*/
public function getWeight(): int
public function getWeight(): ?int
{
return $this->weight;
}
......@@ -105,7 +105,7 @@ class SRV extends CNAME
/**
* @return int
*/
public function getPort(): int
public function getPort(): ?int
{
return $this->port;
}
......
......@@ -33,7 +33,7 @@ class TXT implements RdataInterface
$this->text = addslashes($text);
}
public function getText(): string
public function getText(): ?string
{
return stripslashes($this->text);
}
......
......@@ -61,7 +61,7 @@ class Zone implements \Countable, \IteratorAggregate
/**
* @return string
*/
public function getName(): string
public function getName(): ?string
{
return $this->name;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment