OTPHP\TOTP::now PHP Метод

now() публичный Метод

public now ( )
    public function now()
    {
        return $this->at(time());
    }

Usage Example

 /**
  * Get the one time code for the otp instance
  * @param TOTP|null $totp
  * @return mixed
  */
 public function getCode(TOTP $totp = null)
 {
     if ($totp !== null) {
         return $totp->now();
     } else {
         return $this->totp->now();
     }
 }
All Usage Examples Of OTPHP\TOTP::now