kronostechnologies/graphql-framework

View on GitHub
src/Kronos/GraphQLFramework/Hydrator/Exception/DTORequiresArgumentsException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php


namespace Kronos\GraphQLFramework\Hydrator\Exception;


use Kronos\GraphQLFramework\Exception\FrameworkException;
use function str_replace;

class DTORequiresArgumentsException extends FrameworkException
{
    const MSG = 'The DTO "%dtoFQN%" abnormally requires non-optional constructor arguments.';

    public function __construct($dtoFQN, $previous = null)
    {
        $message = self::MSG;

        $message = str_replace("%dtoFQN%", $dtoFQN, $message);

        parent::__construct($message, $previous);
    }
}