Passed
Push — master ( fd6b1a...a766ea )
by Dispositif
02:28
created

OptiStatus::isMajor()   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
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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\Domain;
11
12
/**
13
 * See also Application/PageWorkStatus
14
 */
15
class OptiStatus
16
{
17
    protected $summary = [];
18
    protected $major = false;
19
    protected $notCosmetic = false;
20
21
    public function getSummary(): array
22
    {
23
        return $this->summary;
24
    }
25
26
    public function addSummaryLog(string $str): OptiStatus
27
    {
28
        $this->summary[] = $str;
29
        return $this;
30
    }
31
32
    public function isMajor(): bool
33
    {
34
        return $this->major;
35
    }
36
37
    public function setMajor(bool $major): OptiStatus
38
    {
39
        $this->major = $major;
40
        return $this;
41
    }
42
43
    public function isNotCosmetic(): bool
44
    {
45
        return $this->notCosmetic;
46
    }
47
48
    public function setNotCosmetic(bool $notCosmetic): OptiStatus
49
    {
50
        $this->notCosmetic = $notCosmetic;
51
        return $this;
52
    }
53
}