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

3
namespace Lmc\Matej\Model\Command;
4

5
use Lmc\Matej\Model\Assertion;
6

7
/**
8
 * Boosting items is a way how to modify results returend by Matej by specifying
9
 * rules to increase items relevance.
10
 */
11
class Boost
12
{
13
    /** @var string */
14
    private $query;
15
    /** @var float */
16
    private $multiplier;
17

18
    private function __construct(string $query, float $multiplier)
19
    {
20
        $this->setQuery($query);
42✔
21
        $this->setMultiplier($multiplier);
42✔
22
    }
23

24
    /**
25
     * Create boost rule to prioritize items
26
     *
27
     * @return static
28
     */
29
    public static function create(string $query, float $multiplier): self
30
    {
31
        return new static($query, $multiplier);
42✔
32
    }
33

34
    public function setQuery(string $query): void
35
    {
36
        $this->query = $query;
42✔
37
    }
38

39
    public function setMultiplier(float $multiplier): void
40
    {
41
        Assertion::greaterThan($multiplier, 0);
42✔
42

43
        $this->multiplier = $multiplier;
35✔
44
    }
45

46
    public function jsonSerialize(): array
47
    {
48
        return [
35✔
49
            'query' => $this->query,
35✔
50
            'multiplier' => $this->multiplier,
35✔
51
        ];
35✔
52
    }
53
}
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