Total Complexity | 7 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | class PageWorkStatus |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $title; |
||
22 | public $wikiText = null; |
||
23 | public $errorWarning = []; |
||
24 | public $featured_article = false; |
||
25 | public $citationSummary = []; |
||
26 | public $importantSummary = []; |
||
27 | public $nbRows = 0; |
||
28 | public $notCosmetic = false; |
||
29 | |||
30 | // Minor flag on edit |
||
31 | public $minorFlag = true; |
||
32 | // WikiBotConfig flag on edit |
||
33 | public $botFlag = true; |
||
34 | public $citationVersion = ''; |
||
35 | public $luckyState = false; |
||
36 | |||
37 | public function __construct(string $title) |
||
38 | { |
||
39 | $this->title = $title; |
||
40 | } |
||
41 | |||
42 | public function getTitle(): ?string |
||
43 | { |
||
44 | return $this->title; |
||
45 | } |
||
46 | |||
47 | public function addErrorWarning(string $text): void |
||
51 | } |
||
52 | } |
||
53 | |||
54 | public function addSummaryTag(string $tag) |
||
60 | } |