src/Beautifier/Template/Line.php
public function parse(callable $callback, int $width): string
    {
        $tokens = [];
        foreach ($this as $token) {
            $token->setLineWidth($width);
            $tokens[] = call_user_func($callback, $token);
        }

        return implode('', $tokens);
    }
public function parse(callable $callback, int $width): string
    {
        $tokens = [];
        foreach ($this as $token) {
            $token->setLineWidth($width);
            $tokens[] = call_user_func($callback, $token);
        }

        return implode('', $tokens);
    }
public function parse ( callable $ callback , int $ width ) : string { $ tokens = [ ] ; foreach ( $ this as $ token ) { $ token -> setLineWidth ( $ width ) ; $ tokens [ ] = call_user_func ( $ callback , $ token ) ; } return implode ( '' , $ tokens ) ; }
Devuelve esta linea en forma de string, usando un callback para resolver cada token

@param callable $callback
@param int      $width

@return string
Devuelve esta linea en forma de string usando un callback para resolver cada token