Passed
Branch master (35b4f7)
by Dispositif
03:50 queued 01:17
created

PageWorkStatus::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
/*
3
 * This file is part of dispositif/wikibot application (@github)
4
 * 2019-2023 © Philippe M./Irønie  <[email protected]>
5
 * For the full copyright and MIT license information, view the license file.
6
 */
7
8
declare(strict_types=1);
9
10
namespace App\Application\OuvrageEdit;
11
12
// todo extends WikiPageAction ?
13
class PageWorkStatus
14
{
15
    /**
16
     * @var string
17
     */
18
    public $title;
19
    public $wikiText = null;
20
    public $errorWarning = [];
21
    public $featured_article = false;
22
    public $citationSummary = [];
23
    public $importantSummary = [];
24
    public $nbRows = 0;
25
26
    // Minor flag on edit
27
    public $minorFlag = true;
28
    // WikiBotConfig flag on edit
29
    public $botFlag = true;
30
    public $citationVersion = '';
31
    public $luckyState = false;
32
33
    public function __construct(string $title)
34
    {
35
        $this->title = $title;
36
    }
37
38
    public function getTitle(): ?string
39
    {
40
        return $this->title;
41
    }
42
}