GeoipFactory::configureOptionResolver()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the BazingaGeocoderBundle package.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT License
11
 */
12
13
namespace Bazinga\GeocoderBundle\ProviderFactory;
14
15
use Geocoder\Provider\Geoip\Geoip;
16
use Geocoder\Provider\Provider;
17
use Symfony\Component\OptionsResolver\OptionsResolver;
18
19
final class GeoipFactory extends AbstractFactory
20
{
21
    protected static $dependencies = [
22
        ['requiredClass' => Geoip::class, 'packageName' => 'geocoder-php/geoip-provider'],
23
    ];
24
25
    protected function getProvider(array $config): Provider
26
    {
27
        return new Geoip();
28
    }
29
30
    protected static function configureOptionResolver(OptionsResolver $resolver)
31
    {
32
    }
33
}
34