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 }
An object to represent one of the inputs to a batch formatting operation.
Definition: CommentItem.php:13
wikiId( $wikiId)
ID of the wiki to link to (if not the local wiki), as used by WikiMap.
Definition: CommentItem.php:78
samePage( $samePage=true)
Set the same-page flag.
Definition: CommentItem.php:64
selfLinkTarget(LinkTarget $selfLinkTarget)
Set the self-link target.
Definition: CommentItem.php:52