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