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

lmc-eu / matej-client-php / 7529439147

15 Jan 2024 01:18PM UTC coverage: 100.0%. Remained the same
7529439147

Pull #145

github

web-flow
Bump actions/checkout from 3 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #145: Bump actions/checkout from 3 to 4

712 of 712 relevant lines covered (100.0%)

35.03 hits per line

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

100.0
/src/Matej.php
1
<?php declare(strict_types=1);
2

3
namespace Lmc\Matej;
4

5
use Http\Client\HttpClient;
6
use Http\Message\MessageFactory;
7
use Lmc\Matej\Http\RequestManager;
8
use Lmc\Matej\Http\ResponseDecoderInterface;
9
use Lmc\Matej\RequestBuilder\RequestBuilderFactory;
10

11
class Matej
12
{
13
    public const CLIENT_ID = 'php-client';
14
    public const VERSION = '4.1.0';
15

16
    /** @var RequestManager */
17
    private $requestManager;
18

19
    public function __construct(string $accountId, string $apiKey)
20
    {
21
        $this->requestManager = new RequestManager($accountId, $apiKey);
21✔
22
    }
23

24
    public function request(): RequestBuilderFactory
25
    {
26
        return new RequestBuilderFactory($this->getRequestManager());
14✔
27
    }
28

29
    /** @return $this */
30
    public function setHttpClient(HttpClient $client): self
31
    {
32
        $this->getRequestManager()->setHttpClient($client);
14✔
33

34
        return $this;
14✔
35
    }
36

37
    /**
38
     * @internal used mainly in integration tests
39
     * @return $this
40
     */
41
    public function setBaseUrl(string $baseUrl): self
42
    {
43
        $this->getRequestManager()->setBaseUrl($baseUrl);
7✔
44

45
        return $this;
7✔
46
    }
47

48
    /**
49
     * @codeCoverageIgnore
50
     * @return $this
51
     */
52
    public function setHttpMessageFactory(MessageFactory $messageFactory): self
53
    {
54
        $this->getRequestManager()->setMessageFactory($messageFactory);
55

56
        return $this;
57
    }
58

59
    /**
60
     * @codeCoverageIgnore
61
     * @return $this
62
     */
63
    public function setHttpResponseDecoder(ResponseDecoderInterface $responseDecoder): self
64
    {
65
        $this->getRequestManager()->setResponseDecoder($responseDecoder);
66

67
        return $this;
68
    }
69

70
    protected function getRequestManager(): RequestManager
71
    {
72
        return $this->requestManager;
14✔
73
    }
74
}
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