You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
551 B
PHP
34 lines
551 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Helper\OmiPay\Request;
|
|
|
|
use App\Helper\OmiPay\Config;
|
|
|
|
abstract class AbstractRequest
|
|
{
|
|
protected $uri;
|
|
|
|
protected $method;
|
|
|
|
protected $_params = [];
|
|
|
|
public function getUrl() {
|
|
return Config::get('base_url') . $this->uri;
|
|
}
|
|
|
|
public function getParams() {
|
|
return $this->_params;
|
|
}
|
|
|
|
public function __get($name)
|
|
{
|
|
return $this->_params[$name];
|
|
}
|
|
|
|
public function __set($name, $value)
|
|
{
|
|
$this->_params[$name] = $value;
|
|
}
|
|
} |