Engagement
+ Inheritance diagram for Engagement:

Description

A MarketingEvent engagement.

Engagements can only be sent to Shopify, they can't be retrieved through the API.

See also
https://shopify.dev/docs/admin-api/rest/reference/marketingevent

Public Methods

magic $this setAdSpend (string $spend)
 
magic $this setClicksCount (int $count)
 
magic $this setCommentsCount (int $count)
 
magic $this setFavoritesCount (int $count)
 
magic $this setImpressionsCount (int $count)
 
magic $this setIsCumulative (bool $cumulative)
 
magic $this setOccurredOn (string $date)
 
magic $this setSharesCount (int $count)
 
magic $this setViewsCount (int $count)
 
- 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)
 

Additional Inherited Members

- Public Properties inherited from Data
const MAP = []
 
const PATCH = []
 
- Protected Properties inherited from Data
Api $api
 
Pool $pool
 
- 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

◆ setAdSpend()

magic $this setAdSpend ( string  $spend)
Returns
$this

◆ setClicksCount()

magic $this setClicksCount ( int  $count)
Returns
$this

◆ setCommentsCount()

magic $this setCommentsCount ( int  $count)
Returns
$this

◆ setFavoritesCount()

magic $this setFavoritesCount ( int  $count)
Returns
$this

◆ setImpressionsCount()

magic $this setImpressionsCount ( int  $count)
Returns
$this

◆ setIsCumulative()

magic $this setIsCumulative ( bool  $cumulative)
Returns
$this

◆ setOccurredOn()

magic $this setOccurredOn ( string  $date)
Returns
$this

◆ setSharesCount()

magic $this setSharesCount ( int  $count)
Returns
$this

◆ setViewsCount()

magic $this setViewsCount ( int  $count)
Returns
$this