|
Prismic.io PHP kit
3.0.0
|
Public Member Functions | |
| __construct ($start, $end, $label=NULL) | |
| getStart () | |
| getEnd () | |
| getLabel () | |
This class embodies an emphasize span (typically rendered as italic). A span comes in a array of spans, which is served with a raw text. If the raw text is "Hello world!", and the EmSpan's start is 6 and its end is 11, then the piece that is meant to be emphasized is "world".
| Prismic\Fragment\Span\EmSpan::__construct | ( | $start, | |
| $end, | |||
$label = NULL |
|||
| ) |
Constructs an emphasize span
| int | $start | the start of the span |
| int | $end | the end of the span |
| string | $label | can be null |
| Prismic\Fragment\Span\EmSpan::getEnd | ( | ) |
Returns the end of the span
| Prismic\Fragment\Span\EmSpan::getLabel | ( | ) |
Returns the label
| Prismic\Fragment\Span\EmSpan::getStart | ( | ) |
Returns the start of the span
1.8.12