|
| static | parse (\stdClass $json) |
| |
§ __construct()
| Prismic\Experiments::__construct |
( |
array |
$draft, |
|
|
array |
$running |
|
) |
| |
- Parameters
-
| array | $draft | |
| array | $running | |
§ getCurrent()
| Prismic\Experiments::getCurrent |
( |
| ) |
|
§ getDraft()
| Prismic\Experiments::getDraft |
( |
| ) |
|
§ getRunning()
| Prismic\Experiments::getRunning |
( |
| ) |
|
§ parse()
| static Prismic\Experiments::parse |
( |
\stdClass |
$json | ) |
|
|
static |
Parses a given experiments. Not meant to be used except for testing.
- Parameters
-
| $json | the json bit retrieved from the API that represents experiments. |
- Returns
- Prismic::Experiments the manipulable object for the experiments.
§ refFromCookie()
| Prismic\Experiments::refFromCookie |
( |
|
$cookie | ) |
|
- Parameters
-
- Returns
- Ref|null
The documentation for this class was generated from the following file:
- src/Prismic/Experiments.php