CSR3DTOTrait
trait CSR3DTOTrait
CSR3DTOTrait.php
The CSR3DTOTrait define the basic CSR3DTOInterface
Properties
| protected string | $attributeContainer | Attribute container | |
| protected string | $positionContainer | Position container |
Methods
Set attribute
Get attribute
Set attributes
Get attributes
Offset exist
Offset get
Offset set
Offset unset
Current
Next
Key
Valid
Rewind
Details
at line 61
$this
setAttribute(string $attributeName, mixed $attributeValue)
Set attribute
This method allow to set or add an attribute to the DTO
at line 79
mixed
getAttribute(string $attributeName)
Get attribute
This method allow to retreive a value from a named attribute of the DTO
at line 97
$this
setAttributes(array $attributes)
Set attributes
This method allow to set the attributes of the DTO from an associative array
at line 113
array
getAttributes()
Get attributes
This method return the attributes as array from the DTO
at line 127
bool
offsetExists(mixed $offset)
Offset exist
This method validate the existence of an offset
at line 141
mixed
offsetGet(mixed $offset)
Offset get
This method return an offset value
at line 156
void
offsetSet(mixed $offset, mixed $value)
Offset set
This method allow to set a value at an offset place
at line 170
void
offsetUnset(mixed $offset)
Offset unset
This method remove an offset
at line 182
mixed
current()
Current
This method return the current iterated value
at line 194
void
next()
Next
This method advance the internal pointer by one step
at line 206
string
key()
Key
This method return the current iterated key
at line 220
bool
valid()
Valid
This method validate the current internal position existence
at line 236
void
rewind()
Rewind
This method reinitialize the internal position