• 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

50.0
/src/Exception/ValidationException.php
1
<?php
2

3
declare(strict_types = 1);
4

5
namespace PHPModelGenerator\Exception;
6

7
use Throwable;
8

9
/**
10
 * Class ValidationException
11
 *
12
 * @package PHPModelGeneratorException
13
 */
14
abstract class ValidationException extends JSONModelValidationException
15
{
16
    /** @var string */
17
    protected $propertyName;
18
    /** @var mixed */
19
    protected $providedValue;
20

21
    /**
22
     * ValidationException constructor.
23
     *
24
     * @param string $message
25
     * @param string $propertyName
26
     * @param mixed $providedValue
27
     * @param int $code
28
     * @param Throwable|null $previous
29
     */
30
    public function __construct(
1✔
31
        string $message,
32
        string $propertyName,
33
        $providedValue,
34
        $code = 0,
35
        ?Throwable $previous = null
36
    ) {
37
        $this->propertyName = $propertyName;
1✔
38
        $this->providedValue = $providedValue;
1✔
39

40
        parent::__construct($message, $code, $previous);
1✔
41
    }
42

43
    /**
44
     * @return string
45
     */
UNCOV
46
    public function getPropertyName(): string
×
47
    {
48
        return $this->propertyName;
×
49
    }
50

51
    /**
52
     * @return mixed
53
     */
UNCOV
54
    public function getProvidedValue()
×
55
    {
56
        return $this->providedValue;
×
57
    }
58
}
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