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