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

View on GitHub
src/Exception/Object/RequiredValueException.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

declare(strict_types = 1);

namespace PHPModelGenerator\Exception\Object;

use PHPModelGenerator\Exception\ValidationException;

/**
 * Class RequiredValueException
 *
 * @package PHPModelGenerator\Exception\Object
 */
class RequiredValueException extends ValidationException
{
    /**
     * MissingRequiredValueException constructor.
     *
     * @param $providedValue
     * @param string $propertyName
     */
    public function __construct($providedValue, string $propertyName)
    {
        parent::__construct("Missing required value for $propertyName", $propertyName, $providedValue);
    }
}