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