MediaWiki  master
CommentItem.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
13 class CommentItem {
18  public $comment;
19 
25 
30  public $samePage;
31 
36  public $wikiId;
37 
41  public function __construct( string $comment ) {
42  $this->comment = $comment;
43  }
44 
54  return $this;
55  }
56 
64  public function samePage( $samePage = true ) {
65  $this->samePage = $samePage;
66  return $this;
67  }
68 
78  public function wikiId( $wikiId ) {
79  $this->wikiId = $wikiId;
80  return $this;
81  }
82 }
MediaWiki\CommentFormatter\CommentItem\samePage
samePage( $samePage=true)
Set the same-page flag.
Definition: CommentItem.php:64
MediaWiki\CommentFormatter\CommentItem
An object to represent one of the inputs to a batch formatting operation.
Definition: CommentItem.php:13
MediaWiki\CommentFormatter\CommentItem\$selfLinkTarget
LinkTarget null $selfLinkTarget
Definition: CommentItem.php:24
MediaWiki\CommentFormatter\CommentItem\wikiId
wikiId( $wikiId)
ID of the wiki to link to (if not the local wiki), as used by WikiMap.
Definition: CommentItem.php:78
MediaWiki\CommentFormatter\CommentItem\$comment
string $comment
Definition: CommentItem.php:18
MediaWiki\CommentFormatter\CommentItem\__construct
__construct(string $comment)
Definition: CommentItem.php:41
MediaWiki\CommentFormatter\CommentItem\$samePage
bool null $samePage
Definition: CommentItem.php:30
MediaWiki\CommentFormatter\CommentItem\selfLinkTarget
selfLinkTarget(LinkTarget $selfLinkTarget)
Set the self-link target.
Definition: CommentItem.php:52
MediaWiki\CommentFormatter\CommentItem\$wikiId
string false null $wikiId
Definition: CommentItem.php:36
MediaWiki\CommentFormatter
Definition: CommentBatch.php:3
MediaWiki\Linker\LinkTarget
Definition: LinkTarget.php:26