/** * Creates a new instance. * * @param string $baseUrl The base url for the request * @param string $path The request path * @param string $method The request method * @param string $cookies The session cookies * @param string $data The data to send with the request * @param string $headersOnly Whether or not to retrieve only headers (exclusive) * @param string $headers The request headers to set; */ public function __construct($baseUrl, $path, $method, $cookies = null, $data = [], $headersOnly = false, $headers = []) { parent::__construct($path, $method, $data); $this->baseUrl = $baseUrl; $this->cookies = $cookies; $this->headersOnly = $headersOnly; $this->headers = $headers; }
function __construct() { parent::__construct(); $this->type = self::PAYMENT_TYPE_SMS; }