Timber\FunctionWrapper::__construct PHP Метод

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

public __construct ( callable $function, array $args = [], boolean $return_output_buffer = false )
$function callable
$args array
$return_output_buffer boolean
    public function __construct($function, $args = array(), $return_output_buffer = false)
    {
        if (is_array($function)) {
            if (is_string($function[0]) && class_exists($function[0]) || gettype($function[0]) === 'object') {
                $this->_class = $function[0];
            }
            if (is_string($function[1])) {
                $this->_function = $function[1];
            }
        } else {
            $this->_function = $function;
        }
        $this->_args = $args;
        $this->_use_ob = $return_output_buffer;
        add_filter('timber/twig', array(&$this, 'add_to_twig'));
    }