amdp3-metaforums/Application/HTTP/Request.php

21 lines
424 B
PHP
Raw Normal View History

2019-11-18 13:33:45 +00:00
<?php
namespace Application\HTTP;
class Request {
private $data;
private $query;
public function __construct() {
$this->data = $_REQUEST;
$this->query = $_SERVER['QUERY_STRING'];
}
function queryString() {
return $this->query;
}
function __get($prop) {
return $this->data[$prop];
}
function __set($prop, $val) {
$this->data[$prop] = $val;
}
}