for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Bright Nucleus View Component.
*
* @package BrightNucleus\View
* @author Alain Schlesser <[email protected]>
* @license MIT
* @link http://www.brightnucleus.com/
* @copyright 2016 Alain Schlesser, Bright Nucleus
*/
namespace BrightNucleus\View\Engine;
use BrightNucleus\View\Support\NullFindable;
* Class NullEngine.
* @since 0.1.0
* @package BrightNucleus\View\Engine
class NullEngine implements Engine, NullFindable
{
* Check whether the Findable can handle an individual criterion.
* @param mixed $criterion Criterion to check.
* @return bool Whether the Findable can handle the criterion.
public function canHandle($criterion)
return true;
}
* Get the rendering callback for a given URI.
* @param string $uri URI to render.
* @param array $context Context in which to render.
* @return string Rendered HTML.
public function getRenderCallback($uri, array $context = [])
return '';