• 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/Model/Request.php
1
<?php declare(strict_types=1);
2

3
namespace Lmc\Matej\Model;
4

5
use Ramsey\Uuid\Uuid;
6

7
/**
8
 * Represents request to Matej prepared to be executed by `RequestManager`.
9
 */
10
class Request
11
{
12
    /** @var string */
13
    private $path;
14
    /** @var string */
15
    private $method;
16
    /** @var array */
17
    private $data;
18
    /** @var string */
19
    private $requestId;
20
    /** @var string */
21
    private $responseClass;
22

23
    public function __construct(
24
        string $path,
25
        string $method,
26
        array $data = [],
27
        string $requestId = null,
28
        string $responseClass = Response::class
29
    ) {
30
        $this->path = $path;
28✔
31
        $this->method = $method;
28✔
32
        $this->data = $data;
28✔
33
        $this->requestId = $requestId ?? Uuid::uuid4()->toString();
28✔
34
        $this->setResponseClass($responseClass);
28✔
35
    }
36

37
    public function getPath(): string
38
    {
39
        return $this->path;
7✔
40
    }
41

42
    public function getMethod(): string
43
    {
44
        return $this->method;
7✔
45
    }
46

47
    public function getData(): array
48
    {
49
        return $this->data;
7✔
50
    }
51

52
    public function getRequestId(): string
53
    {
54
        return $this->requestId;
14✔
55
    }
56

57
    public function getResponseClass(): string
58
    {
59
        return $this->responseClass;
7✔
60
    }
61

62
    private function setResponseClass(string $class): self
63
    {
64
        Assertion::isResponseClass($class);
28✔
65

66
        $this->responseClass = $class;
21✔
67

68
        return $this;
21✔
69
    }
70
}
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

© 2025 Coveralls, Inc