• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mborne / remote-git / 14752569146

30 Apr 2025 10:35AM UTC coverage: 81.624% (-0.06%) from 81.681%
14752569146

push

github

web-flow
Merge pull request #32 from mborne/30-is-archived

add isArchived() method

3 of 4 new or added lines in 4 files covered. (75.0%)

382 of 468 relevant lines covered (81.62%)

2.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Gogs/GogsProject.php
1
<?php
2

3
namespace MBO\RemoteGit\Gogs;
4

5
use MBO\RemoteGit\ProjectInterface;
6

7
/**
8
 * Project implementation for github.
9
 *
10
 * @author mborne
11
 */
12
class GogsProject implements ProjectInterface
13
{
14
    /**
15
     * @param array<string,mixed> $rawMetadata
16
     */
17
    public function __construct(private array $rawMetadata)
18
    {
19
    }
×
20

21
    public function getId(): string
22
    {
23
        return $this->rawMetadata['id'];
×
24
    }
25

26
    public function getName(): string
27
    {
28
        return $this->rawMetadata['full_name'];
×
29
    }
30

31
    public function getDefaultBranch(): ?string
32
    {
33
        return $this->rawMetadata['default_branch'];
×
34
    }
35

36
    public function getHttpUrl(): string
37
    {
38
        return $this->rawMetadata['clone_url'];
×
39
    }
40

41
    public function isArchived(): bool
42
    {
NEW
43
        return $this->rawMetadata['archived'];
×
44
    }
45

46
    public function getRawMetadata(): array
47
    {
48
        return $this->rawMetadata;
×
49
    }
50
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc