src/Generator/Writer/Model/Steps/StubReplaceDocBlock.php
protected function getDocBlockReplace()
    {
        // For now, docblocks will only contain the ide-helper content

        if ( ! $this->isDocBlockRequired()) return '';

        $rows = $this->collectDocBlockPropertyRows();


        if ( ! count($rows)) return '';

        $replace = "/**\n"
                 . $this->getDocBlockIntro();

        foreach ($rows as $row) {

            $replace .= ' * '
                      . "@{$row['tag']} "
                      . "{$row['type']} "
                      . "{$row['name']}\n";
        }

        $replace .= " */\n";

        return $replace;
    }
protected function getDocBlockReplace()
    {
        // For now, docblocks will only contain the ide-helper content

        if ( ! $this->isDocBlockRequired()) return '';

        $rows = $this->collectDocBlockPropertyRows();


        if ( ! count($rows)) return '';

        $replace = "/**\n"
                 . $this->getDocBlockIntro();

        foreach ($rows as $row) {

            $replace .= ' * '
                      . "@{$row['tag']} "
                      . "{$row['type']} "
                      . "{$row['name']}\n";
        }

        $replace .= " */\n";

        return $replace;
    }
protected function getDocBlockReplace ( ) { // For now, docblocks will only contain the ide-helper content if ( ! $ this -> isDocBlockRequired ( ) ) return '' ; $ rows = $ this -> collectDocBlockPropertyRows ( ) ; if ( ! count ( $ rows ) ) return '' ; $ replace = "/**\n" . $ this -> getDocBlockIntro ( ) ; foreach ( $ rows as $ row ) { $ replace .= ' * ' . "@{$row['tag']} " . "{$row['type']} " . "{$row['name']}\n" ; } $ replace .= " */\n" ; return $ replace ; }
Returns the replacement for the docblock placeholder

@return string
Returns the replacement for the docblock placeholder