younishd/endobox

View on GitHub
src/endobox/renderer/NullRenderer.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/**
 * This file is part of endobox.
 *
 * (c) 2015-2020 Younis Bensalah <younis.bensalah@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types = 1);

namespace endobox\renderer;

use endobox\renderable\Box;

class NullRenderer implements Renderer
{

    public function render(Box $box, array $shared = null) : string
    {
        return $box->getInterior()->render();
    }

}