mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-10-09 05:15:41 +00:00
📚 doc blocks
This commit is contained in:
@@ -7,10 +7,20 @@ namespace RobThree\Auth\Providers\Time;
|
||||
*/
|
||||
class NTPTimeProvider implements ITimeProvider
|
||||
{
|
||||
/** @var string */
|
||||
public $host;
|
||||
|
||||
/** @var int */
|
||||
public $port;
|
||||
|
||||
/** @var int */
|
||||
public $timeout;
|
||||
|
||||
/**
|
||||
* @param string $host
|
||||
* @param int $port
|
||||
* @param int $timeout
|
||||
*/
|
||||
public function __construct($host = 'time.google.com', $port = 123, $timeout = 1)
|
||||
{
|
||||
$this->host = $host;
|
||||
@@ -26,6 +36,9 @@ class NTPTimeProvider implements ITimeProvider
|
||||
$this->timeout = $timeout;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getTime()
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user