Aggiornato Composer
This commit is contained in:
@@ -11,20 +11,39 @@
|
||||
|
||||
namespace Carbon\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use InvalidArgumentException as BaseInvalidArgumentException;
|
||||
use Throwable;
|
||||
|
||||
class UnknownSetterException extends BaseInvalidArgumentException implements BadMethodCallException
|
||||
{
|
||||
/**
|
||||
* The setter.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $setter;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param string $name setter name
|
||||
* @param string $setter setter name
|
||||
* @param int $code
|
||||
* @param Exception|null $previous
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
public function __construct($name, $code = 0, Exception $previous = null)
|
||||
public function __construct($setter, $code = 0, Throwable $previous = null)
|
||||
{
|
||||
parent::__construct("Unknown setter '$name'", $code, $previous);
|
||||
$this->setter = $setter;
|
||||
|
||||
parent::__construct("Unknown setter '$setter'", $code, $previous);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the setter.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSetter(): string
|
||||
{
|
||||
return $this->setter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user