PHP Class Sensio\Bundle\FrameworkExtraBundle\Configuration\Template

Author: Fabien Potencier ([email protected])
Inheritance: extends Sensio\Bundle\FrameworkExtraBundle\Configuration\ConfigurationAnnotation
Exibir arquivo Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$template Symfony\Bundle\FrameworkBundle\Templating\TemplateReference The template reference.
$vars array The associative array of template variables.

Public Methods

Method Description
getAliasName ( ) : string Returns the annotation alias name.
getTemplate ( ) : TemplateReference Returns the template reference.
getVars ( ) : array Returns the array of templates variables.
setTemplate ( TemplateReference | string $template ) Sets the template reference.
setValue ( string $template ) Sets the template logic name.
setVars ( array $vars ) Sets the template variables

Method Details

getAliasName() public method

Returns the annotation alias name.
See also: ConfigurationInterface
public getAliasName ( ) : string
return string

getTemplate() public method

Returns the template reference.
public getTemplate ( ) : TemplateReference
return Symfony\Bundle\FrameworkBundle\Templating\TemplateReference

getVars() public method

Returns the array of templates variables.
public getVars ( ) : array
return array

setTemplate() public method

Sets the template reference.
public setTemplate ( TemplateReference | string $template )
$template Symfony\Bundle\FrameworkBundle\Templating\TemplateReference | string The template reference

setValue() public method

Sets the template logic name.
public setValue ( string $template )
$template string The template logic name

setVars() public method

Sets the template variables
public setVars ( array $vars )
$vars array The template variables

Property Details

$template protected_oe property

The template reference.
protected TemplateReference,Symfony\Bundle\FrameworkBundle\Templating $template
return Symfony\Bundle\FrameworkBundle\Templating\TemplateReference

$vars protected_oe property

The associative array of template variables.
protected array $vars
return array