Province
+ Inheritance diagram for Province:

Description

Public Properties

const DIR = 'provinces'
 
const TAX_TYPE_COMPOUNDED = 'compounded'
 
const TAX_TYPE_HARMONIZED = 'harmonized'
 
const TAX_TYPE_NONE = null
 
const TAX_TYPE_NORMAL = 'normal'
 
const TYPE = 'province'
 
- Public Properties inherited from AbstractEntity
const DIR = ''
 All subclasses must redeclare this to match their REST directory (without container). More...
 
const TYPE = ''
 All subclasses must redeclare this to match their types. More...
 
- Public Properties inherited from Data
const MAP = []
 
const PATCH = []
 

Public Methods

magic string getCode ()
 
 getCountry ()
 
magic string getCountryId ()
 injected More...
 
magic string getName ()
 
magic string getShippingZoneId ()
 
magic string getTax ()
 
magic string getTaxName ()
 
magic string getTaxPercentage ()
 
magic null string getTaxType ()
 
magic $this setCode (string $code)
 
magic $this setName (string $name)
 
magic $this setShippingZoneId (string $id)
 
magic $this setTax (string $tax)
 
magic $this setTaxName (string $name)
 
magic $this setTaxPercentage (string $percentage)
 
magic $this setTaxType (?string $type)
 
- Public Methods inherited from AbstractEntity
string __toString ()
 
null string getId ()
 
string[] getPoolKeys ()
 
bool hasId ()
 
$this reload ()
 Fully reloads the entity from Shopify. More...
 
- Public Methods inherited from Data
mixed __call (string $method, array $args)
 
 __construct ($caller, array $data=[])
 
string serialize ()
 Dehydrated JSON encode. More...
 
array toArray ()
 
void unserialize ($serialized)
 
- Public Methods inherited from UpdateTrait
$this update ()
 

Protected Methods

 _container ()
 The container/owner object, if any. More...
 
- Protected Methods inherited from AbstractEntity
mixed _get (string $field)
 Lazy-loads missing fields. More...
 
void _onDelete ()
 
void _onSave ()
 
void _reload (string $field)
 
- Protected Methods inherited from Data
mixed _hydrate (string $class, $item)
 A factory that also hydrates / caches entities. More...
 
array _select ($subject, callable $filter,... $args)
 Magic method: selectField(callable $filter) More...
 
$this _setData (array $data)
 Clears all diffs and sets all data, hydrating mapped fields. More...
 
$this _setField (string $field, $value)
 Sets a value, hydrating if mapped, and clears the diff. More...
 

Additional Inherited Members

- Protected Properties inherited from Data
Api $api
 
Pool $pool
 
- Public Static Methods inherited from AbstractEntity
static null self load ($caller, string $id, array $query=[])
 
static self[] loadAll ($caller, string $path, array $query=[])
 

Methods

◆ _container()

_container ( )
protected

The container/owner object, if any.

Returns
null|AbstractEntity

Reimplemented from AbstractEntity.

◆ getCode()

magic string getCode ( )
Returns
string

◆ getCountryId()

magic string getCountryId ( )

injected

Returns
string

◆ getName()

magic string getName ( )
Returns
string

◆ getShippingZoneId()

magic string getShippingZoneId ( )
Returns
string

◆ getTax()

magic string getTax ( )
Returns
string

◆ getTaxName()

magic string getTaxName ( )
Returns
string

◆ getTaxPercentage()

magic string getTaxPercentage ( )
Returns
string

◆ getTaxType()

magic null string getTaxType ( )
Returns
null|string

◆ setCode()

magic $this setCode ( string  $code)
Returns
$this

◆ setName()

magic $this setName ( string  $name)
Returns
$this

◆ setShippingZoneId()

magic $this setShippingZoneId ( string  $id)
Returns
$this

◆ setTax()

magic $this setTax ( string  $tax)
Returns
$this

◆ setTaxName()

magic $this setTaxName ( string  $name)
Returns
$this

◆ setTaxPercentage()

magic $this setTaxPercentage ( string  $percentage)
Returns
$this

◆ setTaxType()

magic $this setTaxType ( ?string  $type)
Returns
$this