/** * Constructs a list item block. * * @param string $text the unformatted text * @param array $spans an array of \Prismic\Fragment\Span\SpanInterface objects that contain the formatting (em, strong, links, ...) * @param boolean $ordered true if part of an ordered list, false if unordered * @param string $label can be null */ public function __construct($text, $spans, $ordered, $label = null) { $this->ordered = $ordered; parent::__construct($text, $spans, $label); }
/** * Constructs an heading block. * * @param string $text the unformatted text * @param array $spans an array of \Prismic\Fragment\Span\SpanInterface objects that contain the formatting (em, strong, links, ...) * @param string $level the heading's level * @param string $label may be null */ public function __construct($text, $spans, $level, $label = NULL) { $this->level = $level; parent::__construct($text, $spans, $label); }