public function __construct(ShortcodeInterface $shortcode, $text, $offset) { $this->name = $shortcode->getName(); $this->parameters = $shortcode->getParameters(); $this->content = $shortcode->getContent(); $this->bbCode = $shortcode->getBbCode(); $this->text = $text; $this->offset = $offset; }