Source of file RedirectException.php
Size: 0,927 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Application/Exception/RedirectException.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\Application\Exception; use Bluz\Http\StatusCode; /** * Redirect Exception * * @package Bluz\Application\Exception * @author Anton Shevchuk */ class RedirectException extends ApplicationException { /** * Redirect HTTP code * * - 301 Moved Permanently * - 302 Moved Temporarily / Found * - 307 Temporary Redirect * * @var integer */ protected $code = StatusCode::FOUND; /** * @var string */ protected $url; /** * Set Url to Redirect * * @param string $url */ public function setUrl($url) { $this->url = $url; } /** * getUrl * * @return string */ public function getUrl() { return $this->url; } } |