Changed scope

This commit is contained in:
Michael 2021-10-31 04:54:24 +00:00
parent ec5bd9a756
commit 57353eb9b0
33 changed files with 95 additions and 91 deletions

View file

@ -31,11 +31,21 @@ use Exception;
*/
abstract class HTTPException extends Exception
{
public $httpdesc = '';
public $explanation = '';
protected $httpdesc = '';
protected $explanation = '';
public function __construct($message = '', Exception $previous = null)
{
parent::__construct($message, $this->code, $previous);
}
public function getDescription()
{
return $this->httpdesc;
}
public function getExplanation()
{
return $this->explanation;
}
}