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

PageWorkStatus   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 14
dl 0
loc 28
rs 10
c 1
b 0
f 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getTitle() 0 3 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
}