class CampaignModel extends BaseModel (View source)

Simple model that represents a campaign.

Methods

__construct(array $configuration)

The constructor of a Klaviyo data model.

__get($property)

PHPs magic get method to provide access to our protected attributes.

from BaseModel
$this
__set($property, $value)

PHPs magic set method to provide access to our mutable attributes.

from BaseModel
static KlaviyoModel
create(array $configuration = array())

Helper method to create the data model.

from BaseModel
static KlaviyoModel
createFromJson(array $json = '')

Helper method to create the data model from a JSON array.

from BaseModel
jsonSerialize()

{@inheritdoc}

toArray()

Convert the model to an array.

from BaseModel

Details

at line line 42
__construct(array $configuration)

The constructor of a Klaviyo data model.

Parameters

array $configuration The key, value pair array to use for populating the data model.

in BaseModel at line line 37
__get($property)

PHPs magic get method to provide access to our protected attributes.

Parameters

$property

in BaseModel at line line 48
$this __set($property, $value)

PHPs magic set method to provide access to our mutable attributes.

Parameters

$property
$value

Return Value

$this

in BaseModel at line line 65
static KlaviyoModel create(array $configuration = array())

Helper method to create the data model.

Parameters

array $configuration The key, value pair array to use for populating the data model.

Return Value

KlaviyoModel An instance of the Klaviyo data model.

in BaseModel at line line 78
static KlaviyoModel createFromJson(array $json = '')

Helper method to create the data model from a JSON array.

Parameters

array $json The configuration json to use for populating the data model.

Return Value

KlaviyoModel An instance of the Klaviyo data model.

at line line 86
jsonSerialize()

{@inheritdoc}

in BaseModel at line line 98
toArray()

Convert the model to an array.