|
| static | parse (\stdClass $json) |
| |
§ __construct()
| Prismic\Variation::__construct |
( |
|
$id, |
|
|
|
$ref, |
|
|
|
$label |
|
) |
| |
- Parameters
-
| string | $id | |
| string | $ref | |
| string | $label | |
§ getId()
| Prismic\Variation::getId |
( |
| ) |
|
§ getLabel()
| Prismic\Variation::getLabel |
( |
| ) |
|
§ getRef()
| Prismic\Variation::getRef |
( |
| ) |
|
§ parse()
| static Prismic\Variation::parse |
( |
\stdClass |
$json | ) |
|
|
static |
Parses a given variation. Not meant to be used except for testing.
- Parameters
-
| $json | the 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:
- src/Prismic/Experiments.php