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