30 lines
684 B
PHP
30 lines
684 B
PHP
<?php namespace ZN\Response;
|
|
/**
|
|
* ZN PHP Web Framework
|
|
*
|
|
* "Simplicity is the ultimate sophistication." ~ Da Vinci
|
|
*
|
|
* @package ZN
|
|
* @license MIT [http://opensource.org/licenses/MIT]
|
|
* @author Ozan UYKUN [ozan@znframework.com]
|
|
*/
|
|
|
|
class Refresh extends Redirect
|
|
{
|
|
/**
|
|
* Magic Constructor
|
|
*
|
|
* @param string $url = NULL
|
|
* @param int $time = 0
|
|
* @param array $data = NULL
|
|
* @param bool $exit = false
|
|
*/
|
|
public function __construct(?string $url = NULL, int $time = 0, ?array $data = NULL, bool $exit = false)
|
|
{
|
|
if( $url !== NULL )
|
|
{
|
|
$this->refresh($url, $time, $data, $exit);
|
|
}
|
|
}
|
|
}
|