Methods
Construct a new object and extract data
__construct(array $data)
Proxy to disclose method
__get(String $key) : mixed
Parameters
$key
String
Returns
mixed
Magic set method
Do not allow set
__set(string $name, mixed $value)
Parameters
$name
string
$value
mixed
Exceptions
Discloses all values of the object that should be visible in the view layer.
disclose(mixed $key) : mixed
Parameters
$key
mixed
Returns
mixed
Return the objects id or null
getId() : int
Sets data
setData(array $data)
Returns an array representation of this object
toArray() : array
Create disclosedAttributes array
_initDisclosedAttributes()
Initialize vars
_initVars()
Adopt the data from $self
reload(\Moneybird\Domainmodel_Abstract $self) : \Moneybird\self
Parameters
Returns
\Moneybird\self
Returns an array representation of this object
selfToArray(array $filter) : array
Parameters
$filter
Returns
array
Validate object
validate() : bool
Properties
Array containing attributes to disclose
$_discloseAttr : array
Array of attributes that can't be modified
$_readonlyAttr : Array
Array of attributes that are required
$_requiredAttr : Array