kronostechnologies/graphql-framework

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php


namespace Kronos\GraphQLFramework\Hydrator\Exception;


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

class InvalidDefinitionClassException extends FrameworkException
{
    const MSG = 'Value type %typeName% cannot be used as a DTO definition.';


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

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

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