/** * {@inheritdoc} */ public function __construct(Page $parent, array $format) { parent::__construct($parent, $format); switch (true) { case $this->isImage(): $this->style = new Style\BasicStyle($format); break; case $this->isText(): $this->style = new Style\TextStyle($format); break; default: $this->style = new Style\GraphicStyle($format); break; } }
/** * {@inheritdoc} */ public function __construct(Page $parent, array $format) { parent::__construct($parent, $format); $this->style = new TextStyle($format); $this->number_format = $this->format['format']; }
public function __construct(Page $parent, array $format) { parent::__construct($parent, $format); $this->style = new GraphicStyle($format); }