|
| static | parse (\stdClass $json) |
| |
§ __construct()
| Prismic\Experiment::__construct |
( |
|
$id, |
|
|
|
$googleId, |
|
|
|
$name, |
|
|
array |
$variations |
|
) |
| |
- Parameters
-
| string | $id | |
| string | $googleId | |
| string | $name | |
| array | $variations | |
§ getGoogleId()
| Prismic\Experiment::getGoogleId |
( |
| ) |
|
§ getId()
| Prismic\Experiment::getId |
( |
| ) |
|
§ getName()
| Prismic\Experiment::getName |
( |
| ) |
|
§ getVariations()
| Prismic\Experiment::getVariations |
( |
| ) |
|
§ parse()
| static Prismic\Experiment::parse |
( |
\stdClass |
$json | ) |
|
|
static |
Parses a given experiment. Not meant to be used except for testing.
- Parameters
-
| $json | the json bit retrieved from the API that represents a experiment. |
- Returns
- Prismic::Variation the manipulable object for that experiment.
The documentation for this class was generated from the following file:
- src/Prismic/Experiments.php