Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CentralNic
Badcow-DNS
Commits
7e50f585
Unverified
Commit
7e50f585
authored
Feb 03, 2019
by
Sam Williams
Committed by
GitHub
Feb 03, 2019
Browse files
Merge pull request #24 from Livda/master
fix return value for RData
parents
f65cbf8f
f967b247
Changes
9
Hide whitespace changes
Inline
Side-by-side
lib/Rdata/A.php
View file @
7e50f585
...
...
@@ -36,7 +36,7 @@ class A implements RdataInterface
/**
* @return string
*/
public
function
getAddress
():
string
public
function
getAddress
():
?
string
{
return
$this
->
address
;
}
...
...
lib/Rdata/CNAME.php
View file @
7e50f585
...
...
@@ -36,7 +36,7 @@ class CNAME implements RdataInterface
/**
* @return string
*/
public
function
getTarget
():
string
public
function
getTarget
():
?
string
{
return
$this
->
target
;
}
...
...
lib/Rdata/HINFO.php
View file @
7e50f585
...
...
@@ -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
;
}
...
...
lib/Rdata/LOC.php
View file @
7e50f585
...
...
@@ -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
)
{
...
...
lib/Rdata/MX.php
View file @
7e50f585
...
...
@@ -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
;
}
...
...
lib/Rdata/SOA.php
View file @
7e50f585
...
...
@@ -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
;
}
...
...
lib/Rdata/SRV.php
View file @
7e50f585
...
...
@@ -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
;
}
...
...
lib/Rdata/TXT.php
View file @
7e50f585
...
...
@@ -33,7 +33,7 @@ class TXT implements RdataInterface
$this
->
text
=
addslashes
(
$text
);
}
public
function
getText
():
string
public
function
getText
():
?
string
{
return
stripslashes
(
$this
->
text
);
}
...
...
lib/Zone.php
View file @
7e50f585
...
...
@@ -61,7 +61,7 @@ class Zone implements \Countable, \IteratorAggregate
/**
* @return string
*/
public
function
getName
():
string
public
function
getName
():
?
string
{
return
$this
->
name
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment