private function getFilters(array $filters, $level)
    {
        if (empty($filters)) {
            return '';
        }

        $name     = array_shift($filters);
        $method   = $this->getFindMethod($name);
        $filter   = ($method !== 'last') ? var_export($name, true) : '';
        $callable = $this->getCallable('$filter');
        $msg      = var_export($name, true);

        return sprintf($this->prepare(self::FILTER, $level), $method, $filter, $callable, $msg, $this->getFilters($filters, $level));
    }
private function getFilters(array $filters, $level)
    {
        if (empty($filters)) {
            return '';
        }

        $name     = array_shift($filters);
        $method   = $this->getFindMethod($name);
        $filter   = ($method !== 'last') ? var_export($name, true) : '';
        $callable = $this->getCallable('$filter');
        $msg      = var_export($name, true);

        return sprintf($this->prepare(self::FILTER, $level), $method, $filter, $callable, $msg, $this->getFilters($filters, $level));
    }
private function getFilters ( array $ filters , $ level ) { if ( empty ( $ filters ) ) { return '' ; } $ name = array_shift ( $ filters ) ; $ method = $ this -> getFindMethod ( $ name ) ; $ filter = ( $ method !== 'last' ) ? var_export ( $ name , true ) : '' ; $ callable = $ this -> getCallable ( '$filter' ) ; $ msg = var_export ( $ name , true ) ; return sprintf ( $ this -> prepare ( self :: FILTER , $ level ) , $ method , $ filter , $ callable , $ msg , $ this -> getFilters ( $ filters , $ level ) ) ; }
Generate Mustache Template variable filtering PHP source.

@param string[] $filters Array of filters
@param int      $level

@return string Generated filter PHP source
Generate Mustache Template variable filtering PHP source .