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

3
namespace Lmc\Matej\Model\Response;
4

5
use Lmc\Matej\Model\CommandResponse;
6
use Lmc\Matej\Model\RecommendationCommandResponse;
7
use Lmc\Matej\Model\Response;
8

9
class RecommendationsResponse extends Response
10
{
11
    private const INTERACTION_INDEX = 0;
12
    private const USER_MERGE_INDEX = 1;
13
    private const RECOMMENDATION_INDEX = 2;
14

15
    public function getInteraction(): CommandResponse
16
    {
17
        return $this->getCommandResponse(self::INTERACTION_INDEX);
14✔
18
    }
19

20
    public function getUserMerge(): CommandResponse
21
    {
22
        return $this->getCommandResponse(self::USER_MERGE_INDEX);
14✔
23
    }
24

25
    public function getRecommendation(): CommandResponse
26
    {
27
        return $this->getCommandResponse(self::RECOMMENDATION_INDEX);
21✔
28
    }
29

30
    protected function decodeRawCommandResponses(array $commandResponses): array
31
    {
32
        $decodedResponses = [];
21✔
33
        foreach ($commandResponses as $index => $rawCommandResponse) {
21✔
34
            if ($index === self::RECOMMENDATION_INDEX) {
21✔
35
                $decodedResponses[] = RecommendationCommandResponse::createFromRawCommandResponseObject(
21✔
36
                    $rawCommandResponse
21✔
37
                );
21✔
38
            } else {
39
                $decodedResponses[] = CommandResponse::createFromRawCommandResponseObject($rawCommandResponse);
21✔
40
            }
41
        }
42

43
        return $decodedResponses;
21✔
44
    }
45
}
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