MakePaymentOrRefund

Extends \Dotpay\Action\Action

Action which is executed during making payments and refunds.

package

Default

Methods

Initialize an action object.

__construct(callable $userFunc = null) 
inherited

Arguments

$userFunc

callable

Initial callable value, which can be executed in a coorect time

Execute a callback and returns a result of it. It returns null if callback wasn't set.

execute() : mixed
inherited

Response

mixed

Return one argument, which is set.

getOneArgument() : mixed
inherited

Response

mixed

Return an operation which is set as an argument for a callback.

getOperation() : \Dotpay\Model\Operation

Return a callable value which is set.

getUserFunc() : callable
inherited

Response

callable

Set an one argument which will be passed to the function during its execution.

setOneArgument(mixed $oneArgument) : \Dotpay\Action\Action
inherited

Arguments

$oneArgument

mixed

Argument to passing to the function during execution

Response

\Dotpay\Action\Action

Set an operation which can be passed to callback function.

setOperation(\Dotpay\Model\Operation $operation) : \Dotpay\Action\MakePaymentOrRefund

Arguments

$operation

\Dotpay\Model\Operation

Operation object

Response

\Dotpay\Action\MakePaymentOrRefund

Set a callable value which will be executed.

setUserFunc(callable $userFunc) : \Dotpay\Action\Action
inherited

Arguments

$userFunc

callable

Callable value

Response

\Dotpay\Action\Action

Properties

A callable value to executed

userFunc : callable
inherited
var

A callable value to executed

Type(s)

callable

If a callable value contains a function which needs only one argument, it can be passed from this value

oneArgument : mixed
inherited
var

If a callable value contains a function which needs only one argument, it can be passed from this value

Type(s)

mixed