Prismic.io PHP kit  3.0.0
Prismic\Fragment\Span\SpanInterface Interface Reference
Inheritance diagram for Prismic\Fragment\Span\SpanInterface:
Prismic\Fragment\Span\EmSpan Prismic\Fragment\Span\HyperlinkSpan Prismic\Fragment\Span\LabelSpan Prismic\Fragment\Span\StrongSpan

Detailed Description

This interface embodies any span (emphase, strong, link, ...). A span comes in a array of spans, which is served with a raw text. If the raw text is "Hello world!", and the span's start is 6 and its end is 11, then the piece that is meant to be the span is "world".

The known implementations are EmSpan, StrongSpan and HyperlinkSpan.


The documentation for this interface was generated from the following file: