thunderer/Shortcode

View on GitHub
src/Handler/NullHandler.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Thunder\Shortcode\Handler;

use Thunder\Shortcode\Shortcode\ShortcodeInterface;

/**
 * @author Tomasz Kowalczyk <tomasz@kowalczyk.cc>
 */
final class NullHandler
{
    /**
     * Special shortcode to discard any input and return empty text
     *
     * @param ShortcodeInterface $shortcode
     *
     * @return null
     */
    public function __invoke(ShortcodeInterface $shortcode)
    {
        return null;
    }
}