• 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/Object/NestedObjectException.php
1
<?php
2

3
declare(strict_types = 1);
4

5
namespace PHPModelGenerator\Exception\Object;
6

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

10
/**
11
 * Class NotAllowedAdditionalPropertiesException
12
 *
13
 * @package PHPModelGenerator\Exception\Object
14
 */
15
class NestedObjectException extends ValidationException
16
{
17
    /** @var Exception */
18
    private $nestedException;
19

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

31
        parent::__construct(
×
32
            "Invalid nested object for property $propertyName:\n  - " .
×
33
                preg_replace(
×
34
                    "/\n([^\s])/m",
×
35
                    "\n  - $1",
×
36
                    preg_replace("/\n\s/m", "\n     ", $nestedException->getMessage())
×
37
                ),
×
38
            $propertyName,
×
39
            $providedValue
×
40
        );
×
41
    }
42

43
    /**
44
     * @return Exception
45
     */
UNCOV
46
    public function getNestedException(): Exception
×
47
    {
48
        return $this->nestedException;
×
49
    }
50
}
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