peakphp/framework

View on GitHub
src/Di/Exception/MethodNotFoundException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Peak\Di\Exception;

use Psr\Container\NotFoundExceptionInterface;
use \Exception;

class MethodNotFoundException extends Exception implements NotFoundExceptionInterface
{
    /**
     * MethodNotFoundException constructor.
     * @param string $class
     * @param string $method
     */
    public function __construct(string $class, string $method)
    {
        parent::__construct('Method ['.$method.'] not found in class ['.$class.']');
    }
}