PHP Class Timber\FunctionWrapper

Exibir arquivo Open project: jarednova/timber

Public Methods

Method Description
__construct ( callable $function, array $args = [], boolean $return_output_buffer = false )
__toString ( )
add_to_twig ( Twig_Environment $twig ) : Twig_Environment
call ( ) : string

Private Methods

Method Description
_parse_args ( array $args, array $defaults ) : array

Method Details

__construct() public method

public __construct ( callable $function, array $args = [], boolean $return_output_buffer = false )
$function callable
$args array
$return_output_buffer boolean

__toString() public method

public __toString ( )

add_to_twig() public method

public add_to_twig ( Twig_Environment $twig ) : Twig_Environment
$twig Twig_Environment
return Twig_Environment

call() public method

public call ( ) : string
return string