Factory
This class is used to load OTP object from a provisioning Uri.
- Full name:
\OTPHP\Factory
- This class is marked as final and can't be subclassed
- This class implements:
\OTPHP\FactoryInterface
- This class is a Final class
See Also:
- \OTPHP\Test\FactoryTest -
Methods
loadFromProvisioningUri
This method is the unique public method of the class. It can load a provisioning Uri and convert it into an OTP object.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri |
string |
populateParameters
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$otp |
\OTPHP\OTPInterface | |
$data |
\OTPHP\Url |
populateOTP
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$otp |
\OTPHP\OTPInterface | |
$data |
\OTPHP\Url |
createOTP
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$parsed_url |
\OTPHP\Url |
getLabel
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
non-empty-string |
Automatically generated on 2025-03-18