mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 23:54:08 +01:00
47 lines
709 B
PHP
47 lines
709 B
PHP
<?php
|
|
|
|
namespace SP\Services\Auth;
|
|
|
|
/**
|
|
* Class LoginResponse
|
|
*
|
|
* @package SP\Services\Auth
|
|
*/
|
|
class LoginResponse
|
|
{
|
|
/**
|
|
* @var int
|
|
*/
|
|
private $status;
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $redirect;
|
|
|
|
/**
|
|
* LoginResponse constructor.
|
|
* @param int $status
|
|
* @param string $redirect
|
|
*/
|
|
public function __construct($status, $redirect = null)
|
|
{
|
|
$this->status = $status;
|
|
$this->redirect = $redirect;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getStatus()
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getRedirect()
|
|
{
|
|
return $this->redirect;
|
|
}
|
|
} |