Redirect

Informations about a redirect.

package

Default

Methods

Initialize the model.

__construct(string $url, array $data, string $method = 'post', string $encoding = 'utf-8') 

Arguments

$url

string

Target of the redirect

$data

array

Data to send during the redirect

$method

string

Name of used HTTP method

$encoding

string

Encoding type

Return a data to send during the redirect.

getData() : array

Response

array

Return an encoding type.

getEncoding() : string

Response

string

Return a name of used HTTP method.

getMethod() : string

Response

string

Return a target of the redirect.

getUrl() : string

Response

string

Set a data to send during the redirect.

setData(array $data) : \Dotpay\Model\Redirect

Arguments

$data

array

Data to send during the redirect

Response

\Dotpay\Model\Redirect

Set an encoding type.

setEncoding(string $encoding) : \Dotpay\Model\Redirect

Arguments

$encoding

string

Encoding type

Response

\Dotpay\Model\Redirect

Set a name of used HTTP method.

setMethod(string $method) : \Dotpay\Model\Redirect
Throws
\Dotpay\Exception\BadParameter\MethodException

Arguments

$method

string

Name of used HTTP method

Response

\Dotpay\Model\Redirect

Set a target of the redirect.

setUrl(string $url) : \Dotpay\Model\Redirect
Throws
\Dotpay\Exception\BadParameter\UrlException

Thrown when the given url is incorrect

Arguments

$url

string

Target of the redirect

Response

\Dotpay\Model\Redirect

Constants

List of allowed HTTP methods.

ALLOWED_METHODS

Properties

Target of the redirect

url : string
var

Target of the redirect

Type(s)

string

Data to send during the redirect. Keys of the array are names of values

data : array
var

Data to send during the redirect. Keys of the array are names of values

Type(s)

array

Name of used HTTP method

method : string
var

Name of used HTTP method

Type(s)

string

Encoding type

encoding : string
var

Encoding type

Type(s)

string