for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wandu\DI\Exception;
use Interop\Container\Exception\ContainerException;
use Psr\Container\ContainerExceptionInterface;
use RuntimeException;
class CannotChangeException extends RuntimeException implements ContainerExceptionInterface, ContainerException
{
/** @var string */
protected $class;
/**
* @param string $class
*/
public function __construct($class)
$this->class = $class;
$this->message = "it cannot be changed; \"{$class}\".";
}
* @return string
public function getClass()
return $this->class;