|
Prismic.io PHP kit
3.0.0
|
Public Member Functions | |
| __construct ($text, $spans) | |
| getText () | |
| getSpans () | |
This class embodies a text that was parsed (this is for internal use).
| Prismic\Fragment\ParsedText::__construct | ( | $text, | |
| $spans | |||
| ) |
Constructs an parsed text.
| string | $text | the raw text |
| array | $spans | the array of objects |
| Prismic\Fragment\ParsedText::getSpans | ( | ) |
Returns the array of objects
| Prismic\Fragment\ParsedText::getText | ( | ) |
Returns the raw text
1.8.12