/**
  * {@inheritdoc}
  */
 public function __construct(Page $parent, array $format)
 {
     parent::__construct($parent, $format);
     $this->style = new TextStyle($format);
     $this->format_enabled = $this->hasFormatSettings();
     parent::setValue($format['value']);
     if ($this->hasReference()) {
         $this->reference_item = $parent->item($format['ref-id']);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function __construct(Page $parent, array $format)
 {
     parent::__construct($parent, $format);
     $this->style = new BasicStyle($format);
 }