public static function create($comment) {
    $block_comment = new LineCommentBlockNode();
    $comment = trim($comment);
    $lines = array_map('rtrim', explode("\n", $comment));
    foreach ($lines as $line) {
      $comment_node = new CommentNode(T_COMMENT, '// ' . $line . "\n");
      $block_comment->addChild($comment_node);
    }
    return $block_comment;
  }
public static function create($comment) {
    $block_comment = new LineCommentBlockNode();
    $comment = trim($comment);
    $lines = array_map('rtrim', explode("\n", $comment));
    foreach ($lines as $line) {
      $comment_node = new CommentNode(T_COMMENT, '// ' . $line . "\n");
      $block_comment->addChild($comment_node);
    }
    return $block_comment;
  }
public static function create ( $ comment ) { $ block_comment = new LineCommentBlockNode ( ) ; $ comment = trim ( $ comment ) ; $ lines = array_map ( 'rtrim' , explode ( "\n" , $ comment ) ) ; foreach ( $ lines as $ line ) { $ comment_node = new CommentNode ( T_COMMENT , '// ' . $ line . "\n" ) ; $ block_comment -> addChild ( $ comment_node ) ; } return $ block_comment ; }
Create line comment block.

@param string $comment
Comment without leading prefix.

@return LineCommentBlockNode
Create line comment block .