| 1 | <?php |
||
| 9 | final class WrapHandler |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | private $before; |
||
| 13 | /** @var string */ |
||
| 14 | private $after; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $before |
||
| 18 | * @param string $after |
||
| 19 | */ |
||
| 20 | 19 | public function __construct($before, $after) |
|
| 25 | |||
| 26 | /** @return self */ |
||
| 27 | 19 | public static function createBold() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * [b]content[b] |
||
| 34 | * [strong]content[/strong] |
||
| 35 | * |
||
| 36 | * @param ShortcodeInterface $shortcode |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | 2 | public function __invoke(ShortcodeInterface $shortcode) |
|
| 44 | } |
||
| 45 |