Contact

 Methods

Construct a new object and extract data

__construct(array $data) 
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::__construct()
inherited_from \Moneybird\Contact::__construct()

Parameters

$data

array

Proxy to disclose method

__get(String $key) : mixed
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::__get()
inherited_from \Moneybird\Contact::__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()
inherited_from \Moneybird\Contact::__set()

Parameters

$name

string

$value

mixed

Exceptions

\Moneybird\Domainmodel_Exception

Create an estimate for this contact

createEstimate(array $data) : \Moneybird\Estimate
Inherited

inherited_from \Moneybird\Contact::createEstimate()

Parameters

$data

array

Returns

Create an invoice for this contact

createIncomingInvoice(array $data) : \Moneybird\IncomingInvoice
Inherited

inherited_from \Moneybird\Contact::createIncomingInvoice()

Parameters

$data

array

Returns

Create an invoice for this contact

createInvoice(array $data) : \Moneybird\Invoice
Inherited

inherited_from \Moneybird\Contact::createInvoice()

Parameters

$data

array

Returns

Create a recurring template for this contact

createRecurringTemplate(array $data) : \Moneybird\RecurringTemplate
Inherited

inherited_from \Moneybird\Contact::createRecurringTemplate()

Parameters

$data

array

Returns

Deletes a contact

delete(\Moneybird\Service $service) 
Inherited

inherited_from \Moneybird\Contact::delete()

Parameters

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()
inherited_from \Moneybird\Contact::disclose()

Parameters

$key

mixed

Returns

mixed

Get all estimates of this contact

getEstimates(\Moneybird\Estimate_Service $service, string $filter) : \Moneybird\Estimate_Array
Inherited

access public
inherited_from \Moneybird\Contact::getEstimates()

Parameters

$filter

string

Returns

Return the objects id or null

getId() : int
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::getId()
inherited_from \Moneybird\Contact::getId()

Returns

int

Get all invoices of this contact

getIncomingInvoices(\Moneybird\IncomingInvoice_Service $service, string $filter) : \Moneybird\IncomingInvoice_Array
Inherited

access public
inherited_from \Moneybird\Contact::getIncomingInvoices()

Parameters

$filter

string

Returns

Get all invoices of this contact

getInvoices(\Moneybird\Invoice_Service $service, string $filter) : \Moneybird\Invoice_Array
Inherited

access public
inherited_from \Moneybird\Contact::getInvoices()

Parameters

$filter

string

Returns

Get all recurring templates of this contact

getRecurringTemplates(\Moneybird\RecurringTemplate_Service $service, string $filter) : \Moneybird\RecurringTemplate_Array
Inherited

access public
inherited_from \Moneybird\Contact::getRecurringTemplates()

Parameters

$filter

string

Returns

Updates or inserts a contact

save(\Moneybird\Service $service) : \Moneybird\self
Inherited

inherited_from \Moneybird\Contact::save()

Parameters

Exceptions

\Moneybird\NotValidException

Returns

\Moneybird\self

Sets data

setData(array $data) 
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::setData()
inherited_from \Moneybird\Contact::setData()

Parameters

$data

array

Get array representation of Subject

toArray() : Array
Inherited

inherited_from \Moneybird\Mapper_Mapable::toArray()
inherited_from \Moneybird\Contact::toArray()

Returns

Array

Create disclosedAttributes array

_initDisclosedAttributes() 
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::_initDisclosedAttributes()
inherited_from \Moneybird\Contact::_initDisclosedAttributes()

Initialize vars

_initVars() 
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::_initVars()
inherited_from \Moneybird\Contact::_initVars()

Extract will take an array and try to automatically map the array values to properties in this object

extract(array $values, Array $filter) 
Inherited

access protected
inherited_from \Moneybird\Domainmodel_Abstract::extract()
inherited_from \Moneybird\Contact::extract()

Parameters

$values

Array

$filter

Array

Initialize

init() 
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::init()
inherited_from \Moneybird\Contact::init()

Adopt the data from $self

reload(\Moneybird\Domainmodel_Abstract $self) : \Moneybird\self
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::reload()
inherited_from \Moneybird\Contact::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()
inherited_from \Moneybird\Contact::selfToArray()

Parameters

$filter

Returns

array

Set Id

setIdAttr(int $value) 
Inherited

inherited_from \Moneybird\Contact::setIdAttr()

Parameters

$value

int

Exceptions

\Moneybird\InvalidIdException

Validate object

validate() : bool
Inherited

inherited_from \Moneybird\Domainmodel_Abstract::validate()
inherited_from \Moneybird\Contact::validate()

Returns

bool

 Properties

 

Array containing attributes to disclose

$_discloseAttr : array
Inherited

access protected
inherited_from \Moneybird\Domainmodel_Abstract::$$_discloseAttr
inherited_from \Moneybird\Contact::$$_discloseAttr
 

Disclosure

$_disclosure : \Moneybird\Disclosure
Inherited

access protected
inherited_from \Moneybird\Domainmodel_Abstract::$$_disclosure
inherited_from \Moneybird\Contact::$$_disclosure
 

Array of attributes that can't be modified

$_readonlyAttr : Array
Inherited

inherited_from \Moneybird\Contact::$$_readonlyAttr
 

Array of attributes that are required

$_requiredAttr : Array
Inherited

inherited_from \Moneybird\Contact::$$_requiredAttr
 

$address1

$address1 
Inherited

inherited_from \Moneybird\Contact::$$address1
 

$address2

$address2 
Inherited

inherited_from \Moneybird\Contact::$$address2
 

$attention

$attention 
Inherited

inherited_from \Moneybird\Contact::$$attention
 

$bankAccount

$bankAccount 
Inherited

inherited_from \Moneybird\Contact::$$bankAccount
 

$chamberOfCommerce

$chamberOfCommerce 
Inherited

inherited_from \Moneybird\Contact::$$chamberOfCommerce
 

$city

$city 
Inherited

inherited_from \Moneybird\Contact::$$city
 

$companyName

$companyName 
Inherited

inherited_from \Moneybird\Contact::$$companyName
 

$contactHash

$contactHash 
Inherited

inherited_from \Moneybird\Contact::$$contactHash
 

$contactName

$contactName 
Inherited

inherited_from \Moneybird\Contact::$$contactName
 

$country

$country 
Inherited

inherited_from \Moneybird\Contact::$$country
 

$createdAt

$createdAt 
Inherited

inherited_from \Moneybird\Contact::$$createdAt
 

$customerId

$customerId 
Inherited

inherited_from \Moneybird\Contact::$$customerId
 

$email

$email 
Inherited

inherited_from \Moneybird\Contact::$$email
 

$firstname

$firstname 
Inherited

inherited_from \Moneybird\Contact::$$firstname
 

$id

$id 
Inherited

inherited_from \Moneybird\Contact::$$id
 

$lastname

$lastname 
Inherited

inherited_from \Moneybird\Contact::$$lastname
 

$name

$name 
Inherited

inherited_from \Moneybird\Contact::$$name
 

$phone

$phone 
Inherited

inherited_from \Moneybird\Contact::$$phone
 

$revision

$revision 
Inherited

inherited_from \Moneybird\Contact::$$revision
 

$sendMethod

$sendMethod 
Inherited

inherited_from \Moneybird\Contact::$$sendMethod
 

$taxNumber

$taxNumber 
Inherited

inherited_from \Moneybird\Contact::$$taxNumber
 

$updatedAt

$updatedAt 
Inherited

inherited_from \Moneybird\Contact::$$updatedAt
 

$zipcode

$zipcode 
Inherited

inherited_from \Moneybird\Contact::$$zipcode