Source

Ray / Ray / View / Inline.php

Full commit
<?php

namespace Ray\View;

use Ray;

/**
 * Ray - micro framework for PHP
 * @author Mateusz Łopaciński <mateusz@robopuff.com> {@link http://robopuff.com}
 * @since 1.0.0
 * @version 1.0.0
 */
class Inline implements Ray\View{

    /**
     * @var string
     */
    private $html;

    /**
     * @param string $response
     * @param array $config
     */
    public function __construct($response, $config){
        $this->html = $response;
    }

    /**
     * Rendering process
     * @return string
     */
    public function render(){
        return $this->html;
    }
    
}