Completed
Push — master ( 6c5077...d22a37 )
by Christian
01:33
created

SitemapService   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configureSettings() 0 4 1
A execute() 0 4 1
1
<?php
2
3
/*
4
 * (c) Christian Gripp <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Core23\SitemapBundle\Tests\Fixtures;
11
12
use Core23\SitemapBundle\Definition\SitemapDefinitionInterface;
13
use Core23\SitemapBundle\Model\UrlInterface;
14
use Core23\SitemapBundle\Sitemap\SitemapServiceInterface;
15
use Symfony\Component\OptionsResolver\OptionsResolver;
16
17
final class SitemapService implements SitemapServiceInterface
18
{
19
    /**
20
     * @param OptionsResolver $resolver
21
     */
22
    public function configureSettings(OptionsResolver $resolver): void
23
    {
24
        $resolver->setDefault('custom', 'foo');
25
    }
26
27
    /**
28
     * @param SitemapDefinitionInterface $sitemap
29
     *
30
     * @return UrlInterface[]
31
     */
32
    public function execute(SitemapDefinitionInterface $sitemap): array
33
    {
34
        return [];
35
    }
36
}
37