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

MichaelJ2324 / PHP-REST-Client / 15164546007

21 May 2025 02:13PM UTC coverage: 98.369%. Remained the same
15164546007

push

github

web-flow
Merge pull request #20 from MichaelJ2324/3.x

v3.0.7

0 of 2 new or added lines in 1 file covered. (0.0%)

1146 of 1165 relevant lines covered (98.37%)

1.56 hits per line

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

100.0
/src/Client/AuthControllerAwareTrait.php
1
<?php
2

3
namespace MRussell\REST\Client;
4

5
use MRussell\REST\Auth\AuthControllerInterface;
6

7
trait AuthControllerAwareTrait
8
{
9
    protected AuthControllerInterface $auth;
10

11
    /**
12
     * @inheritdoc
13
     */
14
    public function setAuth(AuthControllerInterface $auth): static
1✔
15
    {
16
        $this->auth = $auth;
1✔
17
        $this->configureAuth();
1✔
18
        return $this;
1✔
19
    }
20

21
    /**
22
     * @return void
23
     */
24
    abstract protected function configureAuth();
25

26
    /**
27
     * @implements AuthControllerAwareInterface
28
     */
29
    public function getAuth(): AuthControllerInterface
1✔
30
    {
31
        return $this->auth;
1✔
32
    }
33
}
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