📚 doc blocks

This commit is contained in:
William Hall
2021-03-08 18:21:15 +00:00
parent 452d31bfbf
commit 33a32cb099
27 changed files with 378 additions and 7 deletions
+13
View File
@@ -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 {