You are here

public static function ProgressTrackerApi::create in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 vendor/smartling/api-sdk-php/src/ProgressTracker/ProgressTrackerApi.php \Smartling\ProgressTracker\ProgressTrackerApi::create()

Parameters

AuthApiInterface $authProvider:

string $projectId:

LoggerInterface $logger:

Return value

ProgressTrackerApi

5 calls to ProgressTrackerApi::create()
createRecordDemo in vendor/smartling/api-sdk-php/examples/progress-tracker-example.php
deleteRecordDemo in vendor/smartling/api-sdk-php/examples/progress-tracker-example.php
getTokenDemo in vendor/smartling/api-sdk-php/examples/progress-tracker-example.php
ProgressTrackerApiFunctionalTest::setUp in vendor/smartling/api-sdk-php/tests/functional/ProgressTrackerApiFunctionalTest.php
Test mixture.
SmartlingApiFactory::create in src/Smartling/SmartlingApiFactory.php
Returns API object as a service.

File

vendor/smartling/api-sdk-php/src/ProgressTracker/ProgressTrackerApi.php, line 40

Class

ProgressTrackerApi
Class ProgressTrackerApi

Namespace

Smartling\ProgressTracker

Code

public static function create(AuthApiInterface $authProvider, $projectId, $logger = null) {
  $client = static::initializeHttpClient(self::ENDPOINT_URL);
  $instance = new self($projectId, $client, $logger, self::ENDPOINT_URL);
  $instance
    ->setAuth($authProvider);
  return $instance;
}