@@ 18-26 (lines=9) @@ | ||
15 | * @param string $text |
|
16 | * @param int $offset |
|
17 | */ |
|
18 | public function __construct(ShortcodeInterface $shortcode, $text, $offset) |
|
19 | { |
|
20 | $this->name = $shortcode->getName(); |
|
21 | $this->parameters = $shortcode->getParameters(); |
|
22 | $this->content = $shortcode->getContent(); |
|
23 | $this->bbCode = $shortcode->getBbCode(); |
|
24 | $this->text = $text; |
|
25 | $this->offset = $offset; |
|
26 | } |
|
27 | ||
28 | public function withContent($content) |
|
29 | { |
@@ 17-27 (lines=11) @@ | ||
14 | private $offset; |
|
15 | ||
16 | /** @param string $replacement */ |
|
17 | public function __construct(ParsedShortcodeInterface $shortcode, $replacement) |
|
18 | { |
|
19 | $this->name = $shortcode->getName(); |
|
20 | $this->parameters = $shortcode->getParameters(); |
|
21 | $this->content = $shortcode->getContent(); |
|
22 | $this->bbCode = $shortcode->getBbCode(); |
|
23 | $this->text = $shortcode->getText(); |
|
24 | $this->offset = $shortcode->getOffset(); |
|
25 | ||
26 | $this->replacement = $replacement; |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @param string $replacement |