Passed
Push — develop ( d608c2...fea4fb )
by nguereza
01:49
created

Commit::getAdded()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Quantum\Hub\Entity;
6
7
/**
8
 * @class Commit
9
 * @package Quantum\Hub\Entity
10
 */
11
class Commit extends BaseEntity
12
{
13
    /**
14
     * The id of the commit
15
     * @var string
16
     */
17
    protected string $id = '';
18
19
    /**
20
     * The commit message
21
     * @var string
22
     */
23
    protected string $message = '';
24
25
    /**
26
     * The time of commit
27
     * @var string
28
     */
29
    protected string $timestamp = '';
30
31
    /**
32
     * The URL of the commit
33
     * @var string
34
     */
35
    protected string $url = '';
36
37
    /**
38
     * The files added
39
     * @var array<string>
40
     */
41
    protected array $added = [];
42
43
    /**
44
     * The files modified
45
     * @var array<string>
46
     */
47
    protected array $modified = [];
48
49
    /**
50
     * The files removed
51
     * @var array<string>
52
     */
53
    protected array $removed = [];
54
55
    /**
56
     *
57
     * @return string
58
     */
59
    public function getId(): string
60
    {
61
        return $this->id;
62
    }
63
64
    /**
65
     *
66
     * @return string
67
     */
68
    public function getMessage(): string
69
    {
70
        return $this->message;
71
    }
72
73
    /**
74
     *
75
     * @return string
76
     */
77
    public function getTimestamp(): string
78
    {
79
        return $this->timestamp;
80
    }
81
82
    /**
83
     *
84
     * @return string
85
     */
86
    public function getUrl(): string
87
    {
88
        return $this->url;
89
    }
90
91
    /**
92
     *
93
     * @return array<string>
94
     */
95
    public function getAdded(): array
96
    {
97
        return $this->added;
98
    }
99
100
    /**
101
     *
102
     * @return array<string>
103
     */
104
    public function getModified(): array
105
    {
106
        return $this->modified;
107
    }
108
109
    /**
110
     *
111
     * @return array<string>
112
     */
113
    public function getRemoved(): array
114
    {
115
        return $this->removed;
116
    }
117
}
118