Documentation

Template
in package

FinalYes

Table of Contents

Properties

$closeDelimiter  : non-empty-string
$openDelimiter  : non-empty-string
$template  : non-empty-string
$values  : array<string, string>

Methods

__construct()  : mixed
render()  : string
renderTo()  : void
setVar()  : void
loadTemplateFile()  : non-empty-string

Properties

$closeDelimiter read-only

private non-empty-string $closeDelimiter

$openDelimiter read-only

private non-empty-string $openDelimiter

$template read-only

private non-empty-string $template

$values

private array<string, string> $values = []

Methods

__construct()

public __construct(non-empty-string $templateFile[, non-empty-string $openDelimiter = '{' ][, non-empty-string $closeDelimiter = '}' ]) : mixed
Parameters
$templateFile : non-empty-string
$openDelimiter : non-empty-string = '{'
$closeDelimiter : non-empty-string = '}'
Tags
throws
InvalidArgumentException

render()

public render() : string
Return values
string

renderTo()

public renderTo(string $target) : void
Parameters
$target : string
Tags
codeCoverageIgnore

setVar()

public setVar(array<string, string> $values[, bool $merge = true ]) : void
Parameters
$values : array<string, string>
$merge : bool = true

loadTemplateFile()

private loadTemplateFile(non-empty-string $file) : non-empty-string
Parameters
$file : non-empty-string
Tags
throws
InvalidArgumentException
Return values
non-empty-string
On this page

Search results