mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-26 14:40:29 +01:00
34 lines
818 B
PHP
34 lines
818 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Xentral\Components\ScanbotApi;
|
|
|
|
use Xentral\Components\ScanbotApi\Client\ScanbotApiOcrClient;
|
|
use Xentral\Components\ScanbotApi\Client\ScanbotApiRegistrationClient;
|
|
|
|
class ScanbotApiClientFactory
|
|
{
|
|
/**
|
|
* @param string $url
|
|
* @param string $clientId
|
|
*
|
|
* @return ScanbotApiRegistrationClient
|
|
*/
|
|
public function createRegistrationClient(string $url, string $clientId): ScanbotApiRegistrationClient
|
|
{
|
|
return new ScanbotApiRegistrationClient($url, $clientId);
|
|
}
|
|
|
|
/**
|
|
* @param string $url
|
|
* @param string $apikey
|
|
*
|
|
* @return ScanbotApiOcrClient
|
|
*/
|
|
public function createOcrClient(string $url, string $apikey): ScanbotApiOcrClient
|
|
{
|
|
return new ScanbotApiOcrClient($url, $apikey);
|
|
}
|
|
}
|