Asset
+ Inheritance diagram for Asset:

Description

Public Properties

const TYPE = 'asset'
 
- 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 getAttachment ()
 
magic string getContentType ()
 read-only More...
 
magic string getCreatedAt ()
 read-only More...
 
magic string getKey ()
 
magic string getPublicUrl ()
 read-only More...
 
magic int getSize ()
 read-only More...
 
magic string getSourceKey ()
 
magic string getSrc ()
 
magic string getThemeId ()
 injected, read-only More...
 
magic string getUpdatedAt ()
 read-only More...
 
magic string getValue ()
 
magic $this setAttachment (string $attachment)
 
magic $this setKey (string $key)
 
magic $this setSourceKey (string $key)
 
magic $this setSrc (string $src)
 
magic $this setValue (string $value)
 
- 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 ()
 
- Public Methods inherited from DeleteTrait
void delete ()
 

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...
 

Methods

◆ getAttachment()

magic string getAttachment ( )
Returns
string

◆ getContentType()

magic string getContentType ( )

read-only

Returns
string

◆ getCreatedAt()

magic string getCreatedAt ( )

read-only

Returns
string

◆ getKey()

magic string getKey ( )
Returns
string

◆ getPublicUrl()

magic string getPublicUrl ( )

read-only

Returns
string

◆ getSize()

magic int getSize ( )

read-only

Returns
int

◆ getSourceKey()

magic string getSourceKey ( )
Returns
string

◆ getSrc()

magic string getSrc ( )
Returns
string

◆ getThemeId()

magic string getThemeId ( )

injected, read-only

Returns
string

◆ getUpdatedAt()

magic string getUpdatedAt ( )

read-only

Returns
string

◆ getValue()

magic string getValue ( )
Returns
string

◆ setAttachment()

magic $this setAttachment ( string  $attachment)
Returns
$this

◆ setKey()

magic $this setKey ( string  $key)
Returns
$this

◆ setSourceKey()

magic $this setSourceKey ( string  $key)
Returns
$this

◆ setSrc()

magic $this setSrc ( string  $src)
Returns
$this

◆ setValue()

magic $this setValue ( string  $value)
Returns
$this