public static function create(?string $secret = null, int $period = 30, string $digest = 'sha1', int $digits = 6, int $epoch = 0): self
    {
        return new self($secret, $period, $digest, $digits, $epoch);
    }
public static function create(?string $secret = null, int $period = 30, string $digest = 'sha1', int $digits = 6, int $epoch = 0): self
    {
        return new self($secret, $period, $digest, $digits, $epoch);
    }
public static function create ( ? string $ secret = null , int $ period = 30 , string $ digest = 'sha1' , int $ digits = 6 , int $ epoch = 0 ) : self { return new self ( $ secret , $ period , $ digest , $ digits , $ epoch ) ; }
TOTP constructor.

@param string|null $secret
@param int         $period
@param string      $digest
@param int         $digits
@param int         $epoch

@return self
TOTP constructor .