for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wandu\DI\Exception;
use RuntimeException;
class CannotResolveException extends RuntimeException
{
/** @var string */
protected $class;
protected $parameter;
/**
* @param string $class
* @param string $parameter
*/
public function __construct($class, $parameter)
$this->message = "cannot resolve the \"{$parameter}\" parameter in the \"{$class}\" class.";
$this->class = $class;
$this->parameter = $parameter;
}
* @return string
public function getClass()
return $this->class;
public function getParameter()
return $this->parameter;