| Total Complexity | 10 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | class Config |
||
| 6 | { |
||
| 7 | use Traits\Path; |
||
| 8 | |||
| 9 | protected $tags = []; |
||
| 10 | |||
| 11 | public function hasTags(): bool |
||
| 12 | { |
||
| 13 | return !empty($this->tags); |
||
| 14 | } |
||
| 15 | |||
| 16 | public function getTags(): array |
||
| 19 | } |
||
| 20 | |||
| 21 | public function setTags(array $tags): void |
||
| 22 | { |
||
| 23 | $this->tags = $tags; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function addTag(string $key, $value): void |
||
| 27 | { |
||
| 28 | $this->tags[$key] = $value; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function hasUser(): bool |
||
| 32 | { |
||
| 33 | return !empty($this->tags['user']); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getUser(): array |
||
| 37 | { |
||
| 38 | return $this->tags['user'] ?? []; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function setUser(array $user): void |
||
| 44 | } |
||
| 45 | |||
| 46 | public function hasRelease(): bool |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getRelease(): string |
||
| 52 | { |
||
| 53 | return $this->tags['release'] ?? ''; |
||
| 54 | } |
||
| 55 | |||
| 56 | public function setRelease(string $release) |
||
| 61 |