Archived
1
0
Fork 0

app/models/Data/RequestMeta.php: adding source_ip and method.

This commit is contained in:
Henrik Hautakoski 2018-03-19 19:47:00 +01:00
parent dd71d0b600
commit 815fcbd497

View file

@ -18,6 +18,20 @@ class RequestMeta extends Model
*/
protected $callbackid;
/**
* Source IP Address
*
* @var string
*/
protected $source_ip;
/**
* HTTP Method
*
* @var string
*/
protected $method;
/**
* HTTP Request Uri
*
@ -79,6 +93,42 @@ class RequestMeta extends Model
return $this;
}
/**
* @param string $source_ip
* @return RequestMeta
*/
public function setSourceIp($source_ip)
{
$this->source_ip = (string) $source_ip;
return $this;
}
/**
* @return mixed
*/
public function getSourceIp()
{
return $this->source_ip;
}
/**
* @param string $method
* @return RequestMeta
*/
public function setMethod($method)
{
$this->method = (string) $method;
return $this;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* @param string $uri
* @return RequestMeta