Pop\Mvc\View::__construct PHP Метод

__construct() публичный Метод

Instantiate the view object.
public __construct ( string $template = null, array $data = null ) : View
$template string
$data array
Результат View
    public function __construct($template = null, array $data = null)
    {
        if (null !== $template) {
            if ((substr($template, -6) == '.phtml' || substr($template, -5) == '.php3' || substr($template, -4) == '.php') && file_exists($template)) {
                $this->templateFile = $template;
            } else {
                $this->templateString = $template;
            }
        }
        $this->data = $data;
    }