| Total Complexity | 7 |
| Total Lines | 105 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
||
| 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 |
||
| 116 | } |
||
| 117 | } |
||
| 118 |