Total Complexity | 2 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class TtsApiFactory extends ApiFactoryAbstract |
||
10 | { |
||
11 | /** |
||
12 | * Config section name that is being checked for existence. API-specific properties must |
||
13 | * be located under that section |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $configSectionName = 'ttsApi'; |
||
18 | |||
19 | /** |
||
20 | * API interface that must be implemented by API class |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $apiInterface = TtsApiInterface::class; |
||
25 | |||
26 | /** |
||
27 | * Config properties that must exist for valid config |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $configProperties = [ |
||
32 | 'default', |
||
33 | 'directory' |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * Gets necessary Dictionary API object |
||
38 | * |
||
39 | * @param array $parameters |
||
40 | * |
||
41 | * @return TtsApiInterface |
||
42 | */ |
||
43 | public function getApi(array $parameters = []): TtsApiInterface |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | * |
||
51 | * @throws InvalidPathException |
||
52 | */ |
||
53 | public function getTargetDirectory(): string |
||
62 |