Prismic.io PHP kit  3.0.0
Public Member Functions | List of all members
Prismic\Fragment\ParsedText Class Reference

Public Member Functions

 __construct ($text, $spans)
 
 getText ()
 
 getSpans ()
 

Detailed Description

This class embodies a text that was parsed (this is for internal use).

Constructor & Destructor Documentation

§ __construct()

Prismic\Fragment\ParsedText::__construct (   $text,
  $spans 
)

Constructs an parsed text.

Parameters
string$textthe raw text
array$spansthe array of objects

Member Function Documentation

§ getSpans()

Prismic\Fragment\ParsedText::getSpans ( )

Returns the array of objects

Returns
array the array of objects

§ getText()

Prismic\Fragment\ParsedText::getText ( )

Returns the raw text

Returns
string the raw text

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