mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-29 02:25:44 +00:00
7be0cc3209
Change-Id: Id2c5324d74eccb1209ccb76768c557722c6d9400
33 lines
701 B
PHP
33 lines
701 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\DiscussionTools;
|
|
|
|
class HeadingItem extends ThreadItem {
|
|
private $placeholderHeading = false;
|
|
|
|
/**
|
|
* @param ImmutableRange $range
|
|
* @param bool $placeholderHeading
|
|
*/
|
|
public function __construct(
|
|
ImmutableRange $range, bool $placeholderHeading = false
|
|
) {
|
|
parent::__construct( 'heading', 0, $range );
|
|
$this->placeholderHeading = $placeholderHeading;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isPlaceholderHeading() : bool {
|
|
return $this->placeholderHeading;
|
|
}
|
|
|
|
/**
|
|
* @param bool $placeholderHeading
|
|
*/
|
|
public function setPlaceholderHeading( bool $placeholderHeading ) : void {
|
|
$this->placeholderHeading = $placeholderHeading;
|
|
}
|
|
}
|