public static function create($comment) {
    $comment = trim($comment);
    $lines = array_map('trim', explode("\n", $comment));
    $text = "/**\n";
    foreach ($lines as $i => $line) {
      $text .= ' * ' . $line . "\n";
    }
    $text .= ' */';
    return new DocCommentNode(T_DOC_COMMENT, $text);
  }
public static function create($comment) {
    $comment = trim($comment);
    $lines = array_map('trim', explode("\n", $comment));
    $text = "/**\n";
    foreach ($lines as $i => $line) {
      $text .= ' * ' . $line . "\n";
    }
    $text .= ' */';
    return new DocCommentNode(T_DOC_COMMENT, $text);
  }
public static function create ( $ comment ) { $ comment = trim ( $ comment ) ; $ lines = array_map ( 'trim' , explode ( "\n" , $ comment ) ) ; $ text = "/**\n" ; foreach ( $ lines as $ i => $ line ) { $ text .= ' * ' . $ line . "\n" ; } $ text .= ' */' ; return new DocCommentNode ( T_DOC_COMMENT , $ text ) ; }
Creates a PHPDoc comment.

@param string $comment
The comment body without asterisks, but formatted into lines.

@return DocCommentNode
Creates a PHPDoc comment .