mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-20 20:03:42 +00:00
23 lines
442 B
PHP
23 lines
442 B
PHP
|
<?php
|
||
|
|
||
|
namespace MediaWiki\Extension\DiscussionTools\ThreadItem;
|
||
|
|
||
|
use DateTimeImmutable;
|
||
|
|
||
|
interface CommentItem extends ThreadItem {
|
||
|
/**
|
||
|
* @return string Comment author
|
||
|
*/
|
||
|
public function getAuthor(): string;
|
||
|
|
||
|
/**
|
||
|
* @return DateTimeImmutable Comment timestamp
|
||
|
*/
|
||
|
public function getTimestamp(): DateTimeImmutable;
|
||
|
|
||
|
/**
|
||
|
* @return string Comment timestamp in standard format
|
||
|
*/
|
||
|
public function getTimestampString(): string;
|
||
|
}
|