Current File : /home/inteuuod/public_html/wp-content/plugins/cloudflare/src/API//Request.php
<?php
namespace CF\API;
class Request
{
private $method;
private $url;
private $parameters;
private $body;
private $headers;
/**
* @param $method
* @param $url
* @param $parameters
* @param $body
*/
public function __construct($method, $url, $parameters, $body)
{
$this->method = strtoupper($method);
$this->url = $url;
$this->parameters = $parameters;
$this->body = $body;
}
/**
* @return mixed
*/
public function getMethod()
{
return $this->method;
}
/**
* @param mixed $method
*/
public function setMethod($method)
{
$this->method = strtoupper($method);
}
/**
* @return mixed
*/
public function getUrl()
{
return $this->url;
}
/**
* @param mixed $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return mixed
*/
public function getParameters()
{
return $this->parameters;
}
/**
* @param mixed $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return mixed
*/
public function getBody()
{
return $this->body;
}
/**
* @param mixed $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return mixed
*/
public function getHeaders()
{
return $this->headers;
}
/**
* @param mixed $headers
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
}