Methods
Construct a new object and extract data
__construct(array $data, bool $isDirty)
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::__construct() |
inherited_from |
\Moneybird\TaxRate::__construct() |
Parameters
$data
array
$isDirty
bool
new data is dirty, defaults to true
Proxy to disclose method
__get(String $key) : mixed
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::__get() |
inherited_from |
\Moneybird\TaxRate::__get() |
Parameters
$key
String
Returns
mixed
Magic set method
Do not allow set
__set(string $name, mixed $value)
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::__set() |
inherited_from |
\Moneybird\TaxRate::__set() |
Parameters
$name
string
$value
mixed
Exceptions
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\AbstractModel::disclose() |
inherited_from |
\Moneybird\TaxRate::disclose() |
Parameters
$key
mixed
Returns
mixed
Returns an array representation of this object's dirty attributes
getDirtyAttributes() : array
Inherited
access |
public |
inherited_from |
\Moneybird\Domainmodel\AbstractModel::getDirtyAttributes() |
inherited_from |
\Moneybird\TaxRate::getDirtyAttributes() |
Returns
array
Return the objects id or null
getId() : int
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::getId() |
inherited_from |
\Moneybird\TaxRate::getId() |
Returns
int
Returns true if the object contains any dirty attributes
isDirty() : bool
Inherited
access |
public |
inherited_from |
\Moneybird\Domainmodel\AbstractModel::isDirty() |
inherited_from |
\Moneybird\TaxRate::isDirty() |
Returns
bool
Sets data
setData(array $data, bool $isDirty)
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::setData() |
inherited_from |
\Moneybird\TaxRate::setData() |
Parameters
$data
array
$isDirty
bool
new data is dirty, defaults to true
Get array representation of Subject
toArray() : Array
Inherited
inherited_from |
\Moneybird\Mapper\Mapable::toArray() |
inherited_from |
\Moneybird\TaxRate::toArray() |
Returns
Array
Create disclosedAttributes array
_initDisclosedAttributes()
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::_initDisclosedAttributes() |
inherited_from |
\Moneybird\TaxRate::_initDisclosedAttributes() |
Initialize vars
_initVars()
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::_initVars() |
inherited_from |
\Moneybird\TaxRate::_initVars() |
Copy the object
copy(array $filter) : \Moneybird\Domainmodel\self
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::copy() |
inherited_from |
\Moneybird\TaxRate::copy() |
Parameters
$filter
Array
Attributes not to copy
Returns
\Moneybird\Domainmodel\self
Initialize
init()
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::init() |
inherited_from |
\Moneybird\TaxRate::init() |
Adopt the data from $self
reload(\Moneybird\Domainmodel\AbstractModel $self) : \Moneybird\Domainmodel\self
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::reload() |
inherited_from |
\Moneybird\TaxRate::reload() |
Parameters
Returns
\Moneybird\Domainmodel\self
Returns an array representation of this object
selfToArray(array $filter) : array
Inherited
access |
protected |
inherited_from |
\Moneybird\Domainmodel\AbstractModel::selfToArray() |
inherited_from |
\Moneybird\TaxRate::selfToArray() |
Parameters
$filter
Returns
array
Set dirty state to clean
setClean(string $attr) : \Moneybird\Domainmodel\self
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::setClean() |
inherited_from |
\Moneybird\TaxRate::setClean() |
Parameters
$attr
string
Name of attribute, if null (default) set all attribures clean
Returns
\Moneybird\Domainmodel\self
Set dirty state to dirty
setDirty(string $attr) : \Moneybird\Domainmodel\self
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::setDirty() |
inherited_from |
\Moneybird\TaxRate::setDirty() |
Parameters
$attr
string
Name of attribute, if null (default) set all attribures dirty
Returns
\Moneybird\Domainmodel\self
Set dirty state based on bool
setDirtyState(bool $isDirty, string $attr) : \Moneybird\Domainmodel\self
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::setDirtyState() |
inherited_from |
\Moneybird\TaxRate::setDirtyState() |
Parameters
$isDirty
bool
$attr
string
Name of attribute, if null (default) change state of all attribures
Returns
\Moneybird\Domainmodel\self
Validate object
validate() : bool
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::validate() |
inherited_from |
\Moneybird\TaxRate::validate() |
Returns
bool
Properties
Array of attributes that are dirty
$_dirtyAttr : Array
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::$$_dirtyAttr |
inherited_from |
\Moneybird\TaxRate::$$_dirtyAttr |
Array containing attributes to disclose
$_discloseAttr : array
Inherited
access |
protected |
inherited_from |
\Moneybird\Domainmodel\AbstractModel::$$_discloseAttr |
inherited_from |
\Moneybird\TaxRate::$$_discloseAttr |
Disclosure
$_disclosure : \Moneybird\Disclosure
Inherited
access |
protected |
inherited_from |
\Moneybird\Domainmodel\AbstractModel::$$_disclosure |
inherited_from |
\Moneybird\TaxRate::$$_disclosure |
Array of attributes that can't be modified
$_readonlyAttr : Array
Inherited
inherited_from |
\Moneybird\TaxRate::$$_readonlyAttr |
Array of attributes that are required
$_requiredAttr : Array
Inherited
inherited_from |
\Moneybird\Domainmodel\AbstractModel::$$_requiredAttr |
inherited_from |
\Moneybird\TaxRate::$$_requiredAttr |
$active
$active
Inherited
inherited_from |
\Moneybird\TaxRate::$$active |
$createdAt
$createdAt
Inherited
inherited_from |
\Moneybird\TaxRate::$$createdAt |
$id
$id
Inherited
inherited_from |
\Moneybird\TaxRate::$$id |
$name
$name
Inherited
inherited_from |
\Moneybird\TaxRate::$$name |
$percentage
$percentage
Inherited
inherited_from |
\Moneybird\TaxRate::$$percentage |
$showTax
$showTax
Inherited
inherited_from |
\Moneybird\TaxRate::$$showTax |
$taxRateType
$taxRateType
Inherited
inherited_from |
\Moneybird\TaxRate::$$taxRateType |
$taxedItemType
$taxedItemType
Inherited
inherited_from |
\Moneybird\TaxRate::$$taxedItemType |
$updatedAt
$updatedAt
Inherited
inherited_from |
\Moneybird\TaxRate::$$updatedAt |
Constants
Rate type
RATE_TYPE_PURCHASE
Inherited
const |
RATE_TYPE_PURCHASE Rates for purchases |
inherited_from |
\Moneybird\TaxRate::RATE_TYPE_PURCHASE |
Rate type
RATE_TYPE_SALES
Inherited
const |
RATE_TYPE_SALES Rates for sales |
inherited_from |
\Moneybird\TaxRate::RATE_TYPE_SALES |