public function render(?Formatter $formatter = null): string
    {
        if ($formatter === null) {
            $formatter = new PassthroughFormatter();
        }

        $tags = [];
        foreach ($this->tags as $tag) {
            $tags[] = '{' . $formatter->format($tag) . '}';
        }

        return vsprintf($this->bodyTemplate, $tags);
    }
public function render(?Formatter $formatter = null): string
    {
        if ($formatter === null) {
            $formatter = new PassthroughFormatter();
        }

        $tags = [];
        foreach ($this->tags as $tag) {
            $tags[] = '{' . $formatter->format($tag) . '}';
        }

        return vsprintf($this->bodyTemplate, $tags);
    }
public function render ( ? Formatter $ formatter = null ) : string { if ( $ formatter === null ) { $ formatter = new PassthroughFormatter ( ) ; } $ tags = [ ] ; foreach ( $ this -> tags as $ tag ) { $ tags [ ] = '{' . $ formatter -> format ( $ tag ) . '}' ; } return vsprintf ( $ this -> bodyTemplate , $ tags ) ; }
Renders this description as a string where the provided formatter will format the tags in the expected string
format.
Renders this description as a string where the provided formatter will format the tags in the expected string format .