GoogleAnalyticsProductImpressionCollectionSerializer
in package
Class GoogleAnalyticsProductImpressionCollectionSerializer
Table of Contents
- $impressionSerializer : GoogleAnalyticsProductImpressionSerializer
- __construct() : mixed
- GoogleAnalyticsProductImpressionCollectionSerializer constructor.
- encode() : string
- Encodes the given product impression collection into a json string.
- serialize() : array<string|int, mixed>
- Serializes the given product impression collection into an array.
Properties
$impressionSerializer
protected
GoogleAnalyticsProductImpressionSerializer
$impressionSerializer
Methods
__construct()
GoogleAnalyticsProductImpressionCollectionSerializer constructor.
public
__construct(GoogleAnalyticsProductImpressionSerializer $impressionSerializer) : mixed
Parameters
- $impressionSerializer : GoogleAnalyticsProductImpressionSerializer
Return values
mixed —encode()
Encodes the given product impression collection into a json string.
public
encode(GoogleAnalyticsProductImpressionCollection $collection, int $option) : string
Parameters
- $collection : GoogleAnalyticsProductImpressionCollection
-
Product impression collection to be encoded.
- $option : int
-
Option flag, use a "JSON_" constant flag.
Return values
string —Json encoded product impression collection.
serialize()
Serializes the given product impression collection into an array.
public
serialize(GoogleAnalyticsProductImpressionCollection $collection) : array<string|int, mixed>
Parameters
- $collection : GoogleAnalyticsProductImpressionCollection
-
Product impression collection to be serialized.
Return values
array<string|int, mixed> —Serialized product impression collection.