Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 6 |
CRAP | |
0.00% |
0 / 1 |
| AbstractPageProvider | |
0.00% |
0 / 6 |
|
0.00% |
0 / 6 |
42 | |
0.00% |
0 / 1 |
| getRevisionId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setRevisionId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getPageContent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setPageContent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getDisplayTitle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setDisplayTitle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Wikispeech\Segment; |
| 4 | |
| 5 | /** |
| 6 | * @file |
| 7 | * @ingroup Extensions |
| 8 | * @license GPL-2.0-or-later |
| 9 | */ |
| 10 | |
| 11 | /** |
| 12 | * @since 0.1.10 |
| 13 | */ |
| 14 | abstract class AbstractPageProvider implements PageProvider { |
| 15 | |
| 16 | /** @var string|null */ |
| 17 | private $displayTitle = null; |
| 18 | |
| 19 | /** @var string|null */ |
| 20 | private $pageContent = null; |
| 21 | |
| 22 | /** @var int|null */ |
| 23 | private $revisionId = null; |
| 24 | |
| 25 | /** |
| 26 | * @since 0.1.10 |
| 27 | * @return int|null |
| 28 | */ |
| 29 | public function getRevisionId(): ?int { |
| 30 | return $this->revisionId; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * @since 0.1.10 |
| 35 | * @param int|null $revisionId |
| 36 | */ |
| 37 | public function setRevisionId( ?int $revisionId ): void { |
| 38 | $this->revisionId = $revisionId; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * @since 0.1.10 |
| 43 | * @return string|null |
| 44 | */ |
| 45 | public function getPageContent(): ?string { |
| 46 | return $this->pageContent; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * @since 0.1.10 |
| 51 | * @param string|null $pageContent |
| 52 | */ |
| 53 | public function setPageContent( ?string $pageContent ): void { |
| 54 | $this->pageContent = $pageContent; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * @since 0.1.10 |
| 59 | * @return string|null |
| 60 | */ |
| 61 | public function getDisplayTitle(): ?string { |
| 62 | return $this->displayTitle; |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * @since 0.1.10 |
| 67 | * @param string|null $displayTitle |
| 68 | */ |
| 69 | public function setDisplayTitle( ?string $displayTitle ): void { |
| 70 | $this->displayTitle = $displayTitle; |
| 71 | } |
| 72 | |
| 73 | } |