for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\App\ViewEngine;
use Spiral\Views\ViewInterface;
use Spiral\Views\ViewSource;
class View implements ViewInterface
{
private $source;
public function __construct(ViewSource $source)
$this->source = $source;
}
public function render(array $data = []): string
return $this->source->getCode();