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

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

01 Mar 2026 09:44PM UTC coverage: 19.718% (-0.07%) from 19.788%
22553427785

push

github

web-flow
Add DeniedPropertyException class for validation errors

0 of 2 new or added lines in 1 file covered. (0.0%)

112 of 568 relevant lines covered (19.72%)

0.56 hits per line

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

0.0
/src/Exception/Generic/DeniedPropertyException.php
1
<?php
2

3
declare(strict_types = 1);
4

5
namespace PHPModelGenerator\Exception\Generic;
6

7
use PHPModelGenerator\Exception\ValidationException;
8

9
/**
10
 * Class DeniedPropertyException
11
 *
12
 * @package PHPModelGenerator\Exception\Generic
13
 */
14
class DeniedPropertyException extends ValidationException
15
{
16
    /**
17
     * DeniedPropertyException constructor.
18
     *
19
     * @param $providedValue
20
     * @param string $propertyName
21
     */
NEW
22
    public function __construct($providedValue, string $propertyName)
×
23
    {
NEW
24
        parent::__construct("Value for $propertyName is not allowed", $propertyName, $providedValue);
×
25
    }
26
}
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