for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Shetabit\Multipay;
class Request
{
/**
* HTTP request's data.
*
* @var array
*/
protected $requestData = [];
* HTTP POST data.
protected $postData = [];
* HTTP GET data.
protected $getData = [];
* Request constructor.
public function __construct()
$this->request = $_REQUEST;
request
$this->post = $_POST;
post
$this->get = $_GET;
get
}
* Retrieve HTTP request data.
* @param string $name
* @return mixed|null
public static function input(string $name)
return (new static)->requestData[$name] ?? null;
* Retrieve HTTP POST data.
* @return void
public static function post(string $name)
return (new static)->postData[$name] ?? null;
* Retrieve HTTP GET data.
public static function get(string $name)
return (new static)->getData[$name] ?? null;