Page MenuHomeWickedGov Phorge

StringCommentIterator.php
No OneTemporary

Size
492 B
Referenced Files
None
Subscribers
None

StringCommentIterator.php

<?php
namespace MediaWiki\CommentFormatter;
use ArrayIterator;
/**
* An adaptor which converts an array of strings to an iterator of CommentItem
* objects.
*
* @since 1.38
*/
class StringCommentIterator extends ArrayIterator {
/**
* @internal Use CommentBatch::strings()
* @param string[] $strings
*/
public function __construct( $strings ) {
parent::__construct( $strings );
}
public function current(): CommentItem {
return new CommentItem( parent::current() );
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 14 2026, 22:35 (12 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
dd/47/02c12782f5ff56a1a5f43e8da8f0
Default Alt Text
StringCommentIterator.php (492 B)

Event Timeline