SAREhub/PHP_Commons

View on GitHub
src/SAREhub/Commons/Misc/EnvVarNotFoundException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php


namespace SAREhub\Commons\Misc;


class EnvVarNotFoundException extends \RuntimeException
{
    const MESSAGE_FORMAT = "Not found value of env var: %s";

    public static function create(string $varName): self
    {
        return new self(sprintf(self::MESSAGE_FORMAT, $varName));
    }
}