You are here

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

Same name and namespace in other branches
  1. 8.2 api-sdk-php/src/Project/ProjectApi.php \Smartling\Project\ProjectApi::create()
  2. 8.2 vendor/smartling/api-sdk-php/src/Project/ProjectApi.php \Smartling\Project\ProjectApi::create()
  3. 8.3 vendor/smartling/api-sdk-php/src/Project/ProjectApi.php \Smartling\Project\ProjectApi::create()

Parameters

AuthApiInterface $authProvider:

string $projectId:

LoggerInterface $logger:

Return value

ProjectApi

3 calls to ProjectApi::create()
ProjectApiFunctionalTest::setUp in vendor/smartling/api-sdk-php/tests/functional/ProjectApiFunctionalTest.php
Test mixture.
projectDetailsDemo in vendor/smartling/api-sdk-php/examples/project-example.php
SmartlingApiFactory::create in src/Smartling/SmartlingApiFactory.php
Returns API object as a service.

File

vendor/smartling/api-sdk-php/src/Project/ProjectApi.php, line 26

Class

ProjectApi
Class ProjectApi

Namespace

Smartling\Project

Code

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