You are here

public static function TranslationRequestsApi::create in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/TranslationRequests/TranslationRequestsApi.php \Smartling\TranslationRequests\TranslationRequestsApi::create()

Parameters

AuthApiInterface $authProvider:

string $projectId:

LoggerInterface $logger:

Return value

TranslationRequestsApi

5 calls to TranslationRequestsApi::create()
createTranslationRequestDemo in vendor/smartling/api-sdk-php/examples/translation-requests-example.php
getTranslationRequestDemo in vendor/smartling/api-sdk-php/examples/translation-requests-example.php
searchTranslationRequestDemo in vendor/smartling/api-sdk-php/examples/translation-requests-example.php
TranslationRequestsApiFunctionalTest::setUp in vendor/smartling/api-sdk-php/tests/functional/TranslationRequestsApiFunctionalTest.php
Test mixture.
updateTranslationRequestDemo in vendor/smartling/api-sdk-php/examples/translation-requests-example.php

File

vendor/smartling/api-sdk-php/src/TranslationRequests/TranslationRequestsApi.php, line 28

Class

TranslationRequestsApi
Class TranslationRequestsApi @package Smartling\TranslationRequests

Namespace

Smartling\TranslationRequests

Code

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