Passed
Branch master (ee24dc)
by Dispositif
03:19 queued 39s
created

OptiStatus::addSummaryLog()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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