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

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

19 Sep 2025 03:15PM UTC coverage: 18.962% (+5.0%) from 13.926%
17862408584

push

github

web-flow
Merge pull request #12 from wol-soft/BuilderClassPostProcessor

BuilderInterface

3 of 3 new or added lines in 1 file covered. (100.0%)

99 existing lines in 36 files now uncovered.

106 of 559 relevant lines covered (18.96%)

0.55 hits per line

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

0.0
/src/Exception/Filter/InvalidFilterValueException.php
1
<?php
2

3
declare(strict_types = 1);
4

5
namespace PHPModelGenerator\Exception\Filter;
6

7
use PHPModelGenerator\Exception\ValidationException;
8
use Throwable;
9

10
/**
11
 * Class InvalidFilterValueException
12
 *
13
 * @package PHPModelGenerator\Exception\Filter
14
 */
15
class InvalidFilterValueException extends ValidationException
16
{
17
    /** @var string */
18
    protected $filterToken;
19

20
    /**
21
     * InvalidFilterValueException constructor.
22
     *
23
     * @param           $providedValue
24
     * @param string    $propertyName
25
     * @param string    $filterToken
26
     * @param Throwable $filterException
27
     */
UNCOV
28
    public function __construct($providedValue, string $propertyName, string $filterToken, Throwable $filterException)
×
29
    {
30
        $this->filterToken = $filterToken;
×
31

32
        parent::__construct(
×
33
            sprintf(
×
34
                'Invalid value for property %s denied by filter %s: %s',
×
35
                $propertyName,
×
36
                $filterToken,
×
37
                $filterException->getMessage()
×
38
            ),
×
39
            $propertyName,
×
40
            $providedValue,
×
41
            0,
×
42
            $filterException
×
43
        );
×
44
    }
45

46
    /**
47
     * @return string
48
     */
UNCOV
49
    public function getFilterToken(): string
×
50
    {
51
        return $this->filterToken;
×
52
    }
53

54
    /**
55
     * @return Throwable
56
     */
UNCOV
57
    public function getFilterException(): Throwable
×
58
    {
59
        return $this->getPrevious();
×
60
    }
61
}
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