Comment
+ Inheritance diagram for Comment:

Description

Public Properties

const DIR = 'comments'
 
const TYPE = 'comment'
 
- 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

Article getArticle ()
 
magic string getArticleId ()
 injected More...
 
magic string getAuthor ()
 
Blog getBlog ()
 
magic string getBlogId ()
 injected More...
 
magic string getBody ()
 
magic string getBodyHtml ()
 
magic string getCreatedAt ()
 
magic string getEmail ()
 
magic string getIp ()
 
magic string getPublishedAt ()
 
magic string getStatus ()
 
magic string getUpdatedAt ()
 
magic string getUserAgent ()
 
magic $this setAuthor (string $author)
 
magic $this setBody (string $body)
 
magic $this setBodyHtml (string $html)
 
magic $this setEmail (string $email)
 
magic $this setIp (string $ip)
 
- 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 ()
 

Protected Methods

 _container ()
 The container/owner object, if any. More...
 
string _dir ()
 The POST directory. 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.

◆ _dir()

string _dir ( )
protected

The POST directory.

Defaults to including the container.

Returns
string

Reimplemented from CreateTrait.

◆ getArticle()

Article getArticle ( )
Returns
Article

◆ getArticleId()

magic string getArticleId ( )

injected

Returns
string

◆ getAuthor()

magic string getAuthor ( )
Returns
string

◆ getBlog()

Blog getBlog ( )
Returns
Blog

◆ getBlogId()

magic string getBlogId ( )

injected

Returns
string

◆ getBody()

magic string getBody ( )
Returns
string

◆ getBodyHtml()

magic string getBodyHtml ( )
Returns
string

◆ getCreatedAt()

magic string getCreatedAt ( )
Returns
string

◆ getEmail()

magic string getEmail ( )
Returns
string

◆ getIp()

magic string getIp ( )
Returns
string

◆ getPublishedAt()

magic string getPublishedAt ( )
Returns
string

◆ getStatus()

magic string getStatus ( )
Returns
string

◆ getUpdatedAt()

magic string getUpdatedAt ( )
Returns
string

◆ getUserAgent()

magic string getUserAgent ( )
Returns
string

◆ setAuthor()

magic $this setAuthor ( string  $author)
Returns
$this

◆ setBody()

magic $this setBody ( string  $body)
Returns
$this

◆ setBodyHtml()

magic $this setBodyHtml ( string  $html)
Returns
$this

◆ setEmail()

magic $this setEmail ( string  $email)
Returns
$this

◆ setIp()

magic $this setIp ( string  $ip)
Returns
$this