Prismic.io PHP kit  3.0.0
Public Member Functions | List of all members
Prismic\Fragment\Span\LabelSpan Class Reference
Inheritance diagram for Prismic\Fragment\Span\LabelSpan:
Prismic\Fragment\Span\SpanInterface

Public Member Functions

 __construct ($start, $end, $label)
 
 getStart ()
 
 getEnd ()
 
 getLabel ()
 

Detailed Description

This class embodies a span with a specific label. By default, Prismic::insertSpans will render these as a span element with the label name as the class attribute.

Constructor & Destructor Documentation

§ __construct()

Prismic\Fragment\Span\LabelSpan::__construct (   $start,
  $end,
  $label 
)

Constructs a label span

Parameters
int$startthe start of the span
int$endthe end of the span
string$labelThe value of the label in the writing room

Member Function Documentation

§ getEnd()

Prismic\Fragment\Span\LabelSpan::getEnd ( )

Returns the end of the span

Returns
int the end of the span

§ getLabel()

Prismic\Fragment\Span\LabelSpan::getLabel ( )

Returns the label

Returns
string the label

§ getStart()

Prismic\Fragment\Span\LabelSpan::getStart ( )

Returns the start of the span

Returns
int the start of the span

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