| 1 | <?php |
||
| 14 | class ReplaceShortcodesEvent |
||
| 15 | { |
||
| 16 | private $shortcode; |
||
| 17 | private $text; |
||
| 18 | /** @var ReplacedShortcode[] */ |
||
| 19 | private $replacements; |
||
| 20 | private $result; |
||
| 21 | |||
| 22 | 36 | public function __construct($text, array $replacements, ShortcodeInterface $shortcode = null) |
|
| 30 | |||
| 31 | 36 | private function setReplacements(array $replacements) |
|
| 37 | |||
| 38 | 36 | private function addReplacement(ReplacedShortcode $replacement) |
|
| 42 | |||
| 43 | 1 | public function getText() |
|
| 47 | |||
| 48 | 2 | public function getReplacements() |
|
| 52 | |||
| 53 | 1 | public function getShortcode() |
|
| 57 | |||
| 58 | 2 | public function setResult($result) |
|
| 62 | |||
| 63 | 2 | public function getResult() |
|
| 67 | |||
| 68 | 36 | public function hasResult() |
|
| 72 | } |
||
| 73 |