Skip to content

Commit

Permalink
docs: improve and fix doc blocs
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Jul 24, 2024
1 parent f7a3b7e commit 919708c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@

class Registration
{
/** The key handle of the registered authenticator */
/** @var string The key handle of the registered authenticator */
protected $keyHandle;
/** The public key of the registered authenticator */
/** @var string The public key of the registered authenticator */
protected $publicKey;
/** The attestation certificate of the registered authenticator */
/** @var string The attestation certificate of the registered authenticator */
protected $certificate;
/** The counter associated with this registration */
/** @var int The counter associated with this registration */
protected $counter = -1;

/**
/**
* @param string $keyHandle
* @return void
*/
public function setKeyHandle($keyHandle)
{
Expand All @@ -23,6 +24,7 @@ public function setKeyHandle($keyHandle)

/**
* @param string $publicKey
* @return void
*/
public function setPublicKey($publicKey)
{
Expand All @@ -31,6 +33,7 @@ public function setPublicKey($publicKey)

/**
* @param string $certificate
* @return void
*/
public function setCertificate($certificate)
{
Expand Down Expand Up @@ -62,7 +65,7 @@ public function getCertificate()
}

/**
* @return string
* @return int
*/
public function getCounter()
{
Expand Down
1 change: 1 addition & 0 deletions src/U2FServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class U2FServer

/**
* @throws U2FException If OpenSSL older than 1.0.0 is used
* @return true
*/
public static function checkOpenSSLVersion()
{
Expand Down

0 comments on commit 919708c

Please sign in to comment.