PHP Class Bluz\Application\Exception\RedirectException

Author: Anton Shevchuk
Inheritance: extends ApplicationException
Show file Open project: bluzphp/framework Class Usage Examples

Protected Properties

Property Type Description
$code integer - 301 Moved Permanently - 302 Moved Temporarily - 307 Temporary Redirect
$message exception message consist Location data
$url string

Public Methods

Method Description
getUrl ( ) : string getUrl
setUrl ( string $url ) Set Url to Redirect

Method Details

getUrl() public method

getUrl
public getUrl ( ) : string
return string

setUrl() public method

Set Url to Redirect
public setUrl ( string $url )
$url string

Property Details

$code protected property

- 301 Moved Permanently - 302 Moved Temporarily - 307 Temporary Redirect
protected int $code
return integer

$message protected property

exception message consist Location data
protected $message

$url protected property

protected string $url
return string