Estimate

 Methods

Construct a new estimate

__construct(array $data, \Moneybird\Contact $contact) 
Inherited

inherited_from \Moneybird\Estimate::__construct()

Parameters

$data

array

Proxy to disclose method

__get(String $key) : mixed
Inherited

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

Parameters

$name

string

$value

mixed

Exceptions

\Moneybird\Domainmodel_Exception

Deletes an estimate

delete(\Moneybird\Service $service) 
Inherited

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

Parameters

$key

mixed

Returns

mixed

Return the objects id or null

getId() : int
Inherited

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

Returns

int

Get the raw PDF content

getPdf(\Moneybird\Service $service) : string
Inherited

inherited_from \Moneybird\Estimate::getPdf()

Parameters

Exceptions

\Moneybird\InvalidStateException

Returns

string

Mark the estimate as sent

markAsSent(\Moneybird\Estimate_Service $service) : \Moneybird\self
Inherited

inherited_from \Moneybird\Estimate::markAsSent()

Parameters

Returns

\Moneybird\self

Updates or inserts an estimate

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

inherited_from \Moneybird\Estimate::save()

Parameters

Exceptions

\Moneybird\NotValidException

Returns

\Moneybird\self

Send the estimate

send(\Moneybird\Service $service, string $method, \Moneybird\type $email, \Moneybird\type $message) : \Moneybird\self
Inherited

inherited_from \Moneybird\Estimate::send()

Parameters

$method

string

Send method (email|hand|post); default: email

$email

\Moneybird\type

Address to send to; default: contact e-mail

$message

\Moneybird\type

Returns

\Moneybird\self

Copy info from contact to estimate

setContact(\Moneybird\Contact $contact) : \Moneybird\self
Inherited

access public
inherited_from \Moneybird\Estimate::setContact()

Parameters

Returns

\Moneybird\self

Sets data

setData(array $data) 
Inherited

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

Parameters

$data

array

Get array representation of Subject

toArray() : Array
Inherited

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

Returns

Array

Create disclosedAttributes array

_initDisclosedAttributes() 
Inherited

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

Initialize vars

_initVars() 
Inherited

inherited_from \Moneybird\Estimate::_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\Estimate::extract()

Parameters

$values

Array

$filter

Array

Initialize

init() 
Inherited

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

Adopt the data from $self

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

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

Parameters

$filter

Returns

array

Set details

setDetailsAttr(\Moneybird\Estimate_Detail_Array $value) 
Inherited

inherited_from \Moneybird\Estimate::setDetailsAttr()

Parameters

Set history

setHistoryAttr(\Moneybird\Estimate_History_Array $value) 
Inherited

inherited_from \Moneybird\Estimate::setHistoryAttr()

Parameters

Set Id

setIdAttr(int $value) 
Inherited

inherited_from \Moneybird\Estimate::setIdAttr()

Parameters

$value

int

Exceptions

\Moneybird\InvalidIdException

Set url

setUrlAttr(string $value) 
Inherited

inherited_from \Moneybird\Estimate::setUrlAttr()

Parameters

$value

string

Validate object

validate() : bool
Inherited

inherited_from \Moneybird\Estimate::validate()

Returns

bool

 Properties

 

Array containing attributes to disclose

$_discloseAttr : array
Inherited

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

Disclosure

$_disclosure : \Moneybird\Disclosure
Inherited

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

Array of attributes that can't be modified

$_readonlyAttr : Array
Inherited

inherited_from \Moneybird\Estimate::$$_readonlyAttr
 

Array of attributes that are required

$_requiredAttr : Array
Inherited

inherited_from \Moneybird\Estimate::$$_requiredAttr
 

$address1

$address1 
Inherited

inherited_from \Moneybird\Estimate::$$address1
 

$address2

$address2 
Inherited

inherited_from \Moneybird\Estimate::$$address2
 

$attention

$attention 
Inherited

inherited_from \Moneybird\Estimate::$$attention
 

$city

$city 
Inherited

inherited_from \Moneybird\Estimate::$$city
 

$companyName

$companyName 
Inherited

inherited_from \Moneybird\Estimate::$$companyName
 

$contactId

$contactId 
Inherited

inherited_from \Moneybird\Estimate::$$contactId
 

$country

$country 
Inherited

inherited_from \Moneybird\Estimate::$$country
 

$createdAt

$createdAt 
Inherited

inherited_from \Moneybird\Estimate::$$createdAt
 

$currency

$currency 
Inherited

inherited_from \Moneybird\Estimate::$$currency
 

$customerId

$customerId 
Inherited

inherited_from \Moneybird\Estimate::$$customerId
 

$details

$details 
Inherited

inherited_from \Moneybird\Estimate::$$details
 

$discount

$discount 
Inherited

inherited_from \Moneybird\Estimate::$$discount
 

$dueDateInterval

$dueDateInterval 
Inherited

inherited_from \Moneybird\Estimate::$$dueDateInterval
 

$estimateDate

$estimateDate 
Inherited

inherited_from \Moneybird\Estimate::$$estimateDate
 

$estimateHash

$estimateHash 
Inherited

inherited_from \Moneybird\Estimate::$$estimateHash
 

$estimateId

$estimateId 
Inherited

inherited_from \Moneybird\Estimate::$$estimateId
 

$firstname

$firstname 
Inherited

inherited_from \Moneybird\Estimate::$$firstname
 

$history

$history 
Inherited

inherited_from \Moneybird\Estimate::$$history
 

$id

$id 
Inherited

inherited_from \Moneybird\Estimate::$$id
 

$invoiceProfileId

$invoiceProfileId 
Inherited

inherited_from \Moneybird\Estimate::$$invoiceProfileId
 

$invoiceProfileVersionId

$invoiceProfileVersionId 
Inherited

inherited_from \Moneybird\Estimate::$$invoiceProfileVersionId
 

$language

$language 
Inherited

inherited_from \Moneybird\Estimate::$$language
 

$lastname

$lastname 
Inherited

inherited_from \Moneybird\Estimate::$$lastname
 

$pdfUrl

$pdfUrl 
Inherited

inherited_from \Moneybird\Estimate::$$pdfUrl
 

$postText

$postText 
Inherited

inherited_from \Moneybird\Estimate::$$postText
 

$preText

$preText 
Inherited

inherited_from \Moneybird\Estimate::$$preText
 

$sendMethod

$sendMethod 
Inherited

inherited_from \Moneybird\Estimate::$$sendMethod
 

$showCustomerId

$showCustomerId 
Inherited

inherited_from \Moneybird\Estimate::$$showCustomerId
 

$showTax

$showTax 
Inherited

inherited_from \Moneybird\Estimate::$$showTax
 

$signOnline

$signOnline 
Inherited

inherited_from \Moneybird\Estimate::$$signOnline
 

$state

$state 
Inherited

inherited_from \Moneybird\Estimate::$$state
 

$updatedAt

$updatedAt 
Inherited

inherited_from \Moneybird\Estimate::$$updatedAt
 

$url

$url 
Inherited

inherited_from \Moneybird\Estimate::$$url
 

$zipcode

$zipcode 
Inherited

inherited_from \Moneybird\Estimate::$$zipcode