Methods
Construct a new object and extract data
__construct(array $data)
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::__construct() |
Parameters
$data
array
Proxy to disclose method
__get(String $key) : mixed
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::__get() |
Parameters
$key
String
Returns
mixed
Magic set method
Do not allow set
__set(string $name, mixed $value)
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::__set() |
Parameters
$name
string
$value
mixed
Exceptions
Create an estimate for this contact
createEstimate(array $data) : \Moneybird\Estimate
Parameters
$data
array
Returns
Create an invoice for this contact
createInvoice(array $data) : \Moneybird\Invoice
Parameters
$data
array
Returns
Create a recurring template for this contact
createRecurringTemplate(array $data) : \Moneybird\RecurringTemplate
Parameters
$data
array
Returns
Deletes a contact
delete(\Moneybird\Service $service)
Discloses all values of the object that should be visible in the view layer.
disclose(mixed $key) : mixed
Inherited
access |
public |
inherited_from |
\Moneybird\Domainmodel_Abstract::disclose() |
Parameters
$key
mixed
Returns
mixed
Get all estimates of this contact
getEstimates(\Moneybird\Estimate_Service $service, string $filter) : \Moneybird\Estimate_Array
Parameters
$filter
string
Returns
Return the objects id or null
getId() : int
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::getId() |
Returns
int
Get all invoices of this contact
getIncomingInvoices(\Moneybird\IncomingInvoice_Service $service, string $filter) : \Moneybird\IncomingInvoice_Array
Parameters
$filter
string
Returns
Get all invoices of this contact
getInvoices(\Moneybird\Invoice_Service $service, string $filter) : \Moneybird\Invoice_Array
Parameters
$filter
string
Returns
Get all recurring templates of this contact
getRecurringTemplates(\Moneybird\RecurringTemplate_Service $service, string $filter) : \Moneybird\RecurringTemplate_Array
Parameters
$filter
string
Returns
Updates or inserts a contact
save(\Moneybird\Service $service) : \Moneybird\self
Parameters
Exceptions
Returns
\Moneybird\self
Sets data
setData(array $data)
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::setData() |
Parameters
$data
array
Get array representation of Subject
toArray() : Array
Inherited
inherited_from |
\Moneybird\Mapper_Mapable::toArray() |
Returns
Array
Create disclosedAttributes array
_initDisclosedAttributes()
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::_initDisclosedAttributes() |
Initialize vars
_initVars()
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::_initVars() |
Initialize
init()
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::init() |
Adopt the data from $self
reload(\Moneybird\Domainmodel_Abstract $self) : \Moneybird\self
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::reload() |
Parameters
Returns
\Moneybird\self
Returns an array representation of this object
selfToArray(array $filter) : array
Inherited
access |
protected |
inherited_from |
\Moneybird\Domainmodel_Abstract::selfToArray() |
Parameters
$filter
Returns
array
Set Id
setIdAttr(int $value)
Parameters
$value
int
Exceptions
Validate object
validate() : bool
Inherited
inherited_from |
\Moneybird\Domainmodel_Abstract::validate() |
Returns
bool
Properties
Array containing attributes to disclose
$_discloseAttr : array
Inherited
access |
protected |
inherited_from |
\Moneybird\Domainmodel_Abstract::$$_discloseAttr |
Disclosure
$_disclosure : \Moneybird\Disclosure
Inherited
access |
protected |
inherited_from |
\Moneybird\Domainmodel_Abstract::$$_disclosure |
Array of attributes that can't be modified
$_readonlyAttr : Array
Array of attributes that are required
$_requiredAttr : Array
$bankAccount
$bankAccount
$chamberOfCommerce
$chamberOfCommerce
$companyName
$companyName