Thunder\Shortcode\Tests\ProcessorTest::getHandlers PHP Метод

getHandlers() приватный Метод

private getHandlers ( )
    private function getHandlers()
    {
        $handlers = new HandlerContainer();
        $handlers->add('name', function (ShortcodeInterface $s) {
            return $s->getName();
        })->add('content', function (ShortcodeInterface $s) {
            return $s->getContent();
        })->add('reverse', new ReverseShortcode())->add('url', function (ShortcodeInterface $s) {
            $url = $s->getParameter('url', $s->getBbCode());
            return '<a href="' . $url . '">' . $url . '</a>';
        })->addAlias('c', 'content')->addAlias('n', 'name');
        return $handlers;
    }