Aggiornato Composer
This commit is contained in:
@@ -12,19 +12,38 @@
|
||||
namespace Carbon\Exceptions;
|
||||
|
||||
use BadMethodCallException as BaseBadMethodCallException;
|
||||
use Exception;
|
||||
use Throwable;
|
||||
|
||||
class UnknownMethodException extends BaseBadMethodCallException implements BadMethodCallException
|
||||
{
|
||||
/**
|
||||
* The method.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $method;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param string $method
|
||||
* @param int $code
|
||||
* @param Exception|null $previous
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
public function __construct($method, $code = 0, Exception $previous = null)
|
||||
public function __construct($method, $code = 0, Throwable $previous = null)
|
||||
{
|
||||
$this->method = $method;
|
||||
|
||||
parent::__construct("Method $method does not exist.", $code, $previous);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the method.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMethod(): string
|
||||
{
|
||||
return $this->method;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user