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

wol-soft / php-json-schema-model-generator-production / 30897678651

04 Aug 2026 09:45AM UTC coverage: 37.862% (-8.0%) from 45.818%
30897678651

Pull #21

github

web-flow
Merge b82a9678e into 4319f2540
Pull Request #21: Json schema draft2019

1 of 181 new or added lines in 15 files covered. (0.55%)

379 of 1001 relevant lines covered (37.86%)

1.67 hits per line

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

0.0
/src/Exception/Arrays/MaxContainsException.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace PHPModelGenerator\Exception\Arrays;
6

7
use PHPModelGenerator\Exception\ValidationException;
8

9
class MaxContainsException extends ValidationException
10
{
NEW
11
    public function __construct(
×
12
        array $providedValue,
13
        string $propertyName,
14
        string $jsonPointer,
15
        protected int $maxContains,
16
        protected int $matches,
17
    ) {
NEW
18
        parent::__construct(
×
NEW
19
            sprintf(
×
NEW
20
                "Array '%s' must not contain more than %d items matching the contains constraint,"
×
NEW
21
                    . ' %s matching items provided',
×
NEW
22
                $propertyName,
×
NEW
23
                $this->maxContains,
×
NEW
24
                $this->matches,
×
NEW
25
            ),
×
NEW
26
            $propertyName,
×
NEW
27
            $providedValue,
×
NEW
28
            $jsonPointer,
×
NEW
29
        );
×
30
    }
31

NEW
32
    public function getMaxContains(): int
×
33
    {
NEW
34
        return $this->maxContains;
×
35
    }
36

NEW
37
    public function getMatches(): int
×
38
    {
NEW
39
        return $this->matches;
×
40
    }
41
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc