| Total Complexity | 1 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class TranslateApiFactory extends ApiFactoryAbstract |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Config section name that is being checked for existence. API-specific properties must |
||
| 17 | * be located under that section |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $configSectionName = 'translateApi'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * API interface that must be implemented by API class |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $apiInterface = TranslateApiInterface::class; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Gets necessary Translate API object |
||
| 32 | * |
||
| 33 | * @param array $parameters |
||
| 34 | * |
||
| 35 | * @return TranslateApiInterface |
||
| 36 | */ |
||
| 37 | public function getApi(array $parameters = []): TranslateApiInterface |
||
| 42 |