@@ 12-20 (lines=9) @@ | ||
9 | private $text; |
|
10 | private $offset; |
|
11 | ||
12 | public function __construct(ShortcodeInterface $shortcode, $text, $offset) |
|
13 | { |
|
14 | $this->name = $shortcode->getName(); |
|
15 | $this->parameters = $shortcode->getParameters(); |
|
16 | $this->content = $shortcode->getContent(); |
|
17 | $this->bbCode = $shortcode->getBbCode(); |
|
18 | $this->text = $text; |
|
19 | $this->offset = $offset; |
|
20 | } |
|
21 | ||
22 | public function withContent($content) |
|
23 | { |
@@ 11-21 (lines=11) @@ | ||
8 | { |
|
9 | private $replacement; |
|
10 | ||
11 | public function __construct(ParsedShortcodeInterface $shortcode, $replacement) |
|
12 | { |
|
13 | $this->name = $shortcode->getName(); |
|
14 | $this->parameters = $shortcode->getParameters(); |
|
15 | $this->content = $shortcode->getContent(); |
|
16 | $this->bbCode = $shortcode->getBbCode(); |
|
17 | $this->text = $shortcode->getText(); |
|
18 | $this->offset = $shortcode->getOffset(); |
|
19 | ||
20 | $this->replacement = $replacement; |
|
21 | } |
|
22 | ||
23 | public function getReplacement() |
|
24 | { |