*/ final class UrlHandler { /** * [url="http://example.org"]Click![/url] * [url="http://example.org" /] * [url]http://example.org[/url] * * @param ShortcodeInterface $shortcode * * @return string */ public function __invoke(ShortcodeInterface $shortcode) { $url = $shortcode->getBbCode() ?: $shortcode->getContent(); return ''.$shortcode->getContent().''; } }