protected function getContent(string $padding = '') : string
    {
        $content = '';

        if (count($this->fragments) > 0) {
            foreach ($this->fragments as $fragment) {
                if (is_string($fragment)) {
                    $content .= $padding . $fragment . "\n";
                } elseif ($fragment instanceof CNabuAbstractFragmentBuilder) {
                    $content .= $fragment->create($padding) . "\n";
                }
            }
        }

        return $content;
    }
protected function getContent(string $padding = '') : string
    {
        $content = '';

        if (count($this->fragments) > 0) {
            foreach ($this->fragments as $fragment) {
                if (is_string($fragment)) {
                    $content .= $padding . $fragment . "\n";
                } elseif ($fragment instanceof CNabuAbstractFragmentBuilder) {
                    $content .= $fragment->create($padding) . "\n";
                }
            }
        }

        return $content;
    }
protected function getContent ( string $ padding = '' ) : string { $ content = '' ; if ( count ( $ this -> fragments ) > 0 ) { foreach ( $ this -> fragments as $ fragment ) { if ( is_string ( $ fragment ) ) { $ content .= $ padding . $ fragment . "\n" ; } elseif ( $ fragment instanceof CNabuAbstractFragmentBuilder ) { $ content .= $ fragment -> create ( $ padding ) . "\n" ; } } } return $ content ; }
Create the content section concatenating each fragment.
@param string $padding Sequence of characters to place before each line
of the content.
@return string Return the content string.
Create the content section concatenating each fragment .