Carrier
+ Inheritance diagram for Carrier:

Description

Public Properties

const DIR = 'carrier_services'
 
const FORMAT_JSON = 'json'
 
const FORMAT_XML = 'xml'
 
const TYPE = 'carrier_service'
 
- 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 getCallbackUrl ()
 
magic string getCarrierServiceType ()
 
magic string getFormat ()
 
magic string getName ()
 
magic bool hasServiceDiscovery ()
 
magic bool isActive ()
 
magic $this setActive (bool $active)
 
magic $this setCallbackUrl (string $url)
 
magic $this setCarrierServiceType (string $type)
 
magic $this setFormat (string $format)
 
magic $this setName (string $name)
 
magic $this setServiceDiscovery (bool $discovery)
 
- 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 CreateTrait
$this create ()
 
- Public Methods inherited from DeleteTrait
void delete ()
 
- Public Methods inherited from UpdateTrait
$this update ()
 

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=[])
 
- Protected Methods inherited from AbstractEntity
null AbstractEntity _container ()
 The container/owner object, if any. More...
 
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...
 
- Protected Methods inherited from CreateTrait
string _dir ()
 The POST directory. More...
 

Methods

◆ getCallbackUrl()

magic string getCallbackUrl ( )
Returns
string

◆ getCarrierServiceType()

magic string getCarrierServiceType ( )
Returns
string

◆ getFormat()

magic string getFormat ( )
Returns
string

◆ getName()

magic string getName ( )
Returns
string

◆ hasServiceDiscovery()

magic bool hasServiceDiscovery ( )
Returns
bool

◆ isActive()

magic bool isActive ( )
Returns
bool

◆ setActive()

magic $this setActive ( bool  $active)
Returns
$this

◆ setCallbackUrl()

magic $this setCallbackUrl ( string  $url)
Returns
$this

◆ setCarrierServiceType()

magic $this setCarrierServiceType ( string  $type)
Returns
$this

◆ setFormat()

magic $this setFormat ( string  $format)
Returns
$this

◆ setName()

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

◆ setServiceDiscovery()

magic $this setServiceDiscovery ( bool  $discovery)
Returns
$this