Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4030255
StringCommentIterator.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
492 B
Referenced Files
None
Subscribers
None
StringCommentIterator.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment