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

lmc-eu / matej-client-php / 7536558481

15 Jan 2024 01:31PM UTC coverage: 100.0%. Remained the same
7536558481

push

github

OndraM
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>

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

3
namespace Lmc\Matej\Model\Command;
4

5
use Lmc\Matej\Model\Assertion;
6

7
/**
8
 * Deliver recommendations for given item.
9
 */
10
abstract class AbstractItemRecommendation extends AbstractRecommendation
11
{
12
    /** @var string */
13
    private $itemId;
14

15
    protected function __construct(string $itemId, string $scenario)
16
    {
17
        parent::__construct($scenario);
56✔
18
        $this->setItemId($itemId);
56✔
19
    }
20

21
    protected function setItemId(string $itemId): void
22
    {
23
        Assertion::typeIdentifier($itemId);
56✔
24

25
        $this->itemId = $itemId;
56✔
26
    }
27

28
    protected function getCommandParameters(): array
29
    {
30
        $parameters = parent::getCommandParameters();
56✔
31

32
        $parameters['item_id'] = $this->itemId;
56✔
33

34
        return $parameters;
56✔
35
    }
36
}
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