src/Di/Exception/MethodNotFoundException.php
<?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.']');
}
}