app/models/Data/RequestMeta.php: adding source_ip and method.
This commit is contained in:
parent
dd71d0b600
commit
815fcbd497
1 changed files with 50 additions and 0 deletions
|
|
@ -18,6 +18,20 @@ class RequestMeta extends Model
|
||||||
*/
|
*/
|
||||||
protected $callbackid;
|
protected $callbackid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Source IP Address
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $source_ip;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTTP Method
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $method;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HTTP Request Uri
|
* HTTP Request Uri
|
||||||
*
|
*
|
||||||
|
|
@ -79,6 +93,42 @@ class RequestMeta extends Model
|
||||||
return $this;
|
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
|
* @param string $uri
|
||||||
* @return RequestMeta
|
* @return RequestMeta
|
||||||
|
|
|
||||||
Reference in a new issue