Param

Param node in XML file with Dependency Injection rules.

It represents parameter, which is given during creating an object.

package

Default

Methods

Initialize the param object.

__construct(string $className = '', string $name = '', mixed $value = '') 

Arguments

$className

string

$name

string

$value

mixed

Return a class name of an object which is a value of the param.

getClassName() : string

Response

string

Return a name of the param.

getName() : string

Response

string

Return a store value which is stored in the param object.

getStoredValue() : mixed

If a special value is set, then it's returned. In other case can be returned a value which is set during initialization. If none value is set, then will be returned a null value.

Response

mixed

Return a value which is set during initialization of the param object.

getValue() : string

Response

string

Return a string which contains XML representation of the param object.

getXml() : string

Response

string

Set a value which can be stored in the parameter, after initialization the object.

setStoredValue(mixed $value) : \Dotpay\Loader\Xml\Param

Arguments

$value

mixed

A value which to store in the param object

Response

\Dotpay\Loader\Xml\Param

Properties

A name of a class to which belongs an object which is a value of the parameter

className : string
var

A name of a class to which belongs an object which is a value of the parameter

Type(s)

string

A name of the parameter

name : string
var

A name of the parameter

Type(s)

string

An initial value of the parameter

value : string
var

An initial value of the parameter

Type(s)

string

A value which is stored in this parameter. It can be set after initialization of the object and it can store for example an instance of other class

storedValue : mixed
var

A value which is stored in this parameter. It can be set after initialization of the object and it can store for example an instance of other class

Type(s)

mixed