Prismic.io PHP kit  3.0.0
Public Member Functions | Static Public Member Functions | List of all members
Prismic\Variation Class Reference

Public Member Functions

 __construct ($id, $ref, $label)
 
 getId ()
 
 getRef ()
 
 getLabel ()
 

Static Public Member Functions

static parse (\stdClass $json)
 

Constructor & Destructor Documentation

§ __construct()

Prismic\Variation::__construct (   $id,
  $ref,
  $label 
)
Parameters
string$id
string$ref
string$label

Member Function Documentation

§ getId()

Prismic\Variation::getId ( )
Returns
string

§ getLabel()

Prismic\Variation::getLabel ( )
Returns
string

§ getRef()

Prismic\Variation::getRef ( )
Returns
string

§ parse()

static Prismic\Variation::parse ( \stdClass  $json)
static

Parses a given variation. Not meant to be used except for testing.

Parameters
$jsonthe json bit retrieved from the API that represents a variation.
Returns
Prismic::Variation the manipulable object for that variation.

The documentation for this class was generated from the following file: