interface CSR3DTOInterface implements ArrayAccess, Iterator

CSR3DTOInterface

The CSR3DTOInterface define the base CSR3 data transfer object interfae.

Methods

$this
setAttribute(string $attributeName, mixed $attributeValue)

Set attribute

mixed
getAttribute(string $attributeName)

Get attribute

$this
setAttributes(array $attributes)

Set attributes

array
getAttributes()

Get attributes

Details

at line 42
$this setAttribute(string $attributeName, mixed $attributeValue)

Set attribute

This method allow to set or add an attribute to the DTO

Parameters

string $attributeName The attribute to set
mixed $attributeValue The value to set

Return Value

$this

at line 56
mixed getAttribute(string $attributeName)

Get attribute

This method allow to retreive a value from a named attribute of the DTO

Parameters

string $attributeName The name of the attribute whence return the value

Return Value

mixed

at line 67
$this setAttributes(array $attributes)

Set attributes

This method allow to set the attributes of the DTO from an associative array

Parameters

array $attributes The associative array of attributes

Return Value

$this

at line 76
array getAttributes()

Get attributes

This method return the attributes as array from the DTO

Return Value

array