widmogrod/php-functional

View on GitHub
src/Monad/Control/Doo/Registry/VariableNotDeclaredError.php

Summary

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

declare(strict_types=1);
namespace Widmogrod\Monad\Control\Doo\Registry;

class VariableNotDeclaredError extends \Exception
{
    public function __construct(string $name)
    {
        $message = 'Variable "%s" is not declared';
        $message = sprintf($message, $name);

        parent::__construct($message);
    }
}