SpellCheckApiFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getApi() 0 3 1
1
<?php
2
3
namespace GinoPane\PHPolyglot\API\Factory\SpellCheck;
4
5
use GinoPane\PHPolyglot\API\Factory\ApiFactoryAbstract;
6
use GinoPane\PHPolyglot\API\Implementation\SpellCheck\SpellCheckApiInterface;
7
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
33
    {
34
        return parent::getApi($parameters);
35
    }
36
}
37