SitemapClient   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A export() 0 4 1
1
<?php
2
/**
3
 * vipnytt/RobotsTxtParser
4
 *
5
 * @link https://github.com/VIPnytt/RobotsTxtParser
6
 * @license https://github.com/VIPnytt/RobotsTxtParser/blob/master/LICENSE The MIT License (MIT)
7
 */
8
9
namespace vipnytt\RobotsTxtParser\Client\Directives;
10
11
/**
12
 * Class SitemapClient
13
 *
14
 * @see https://github.com/VIPnytt/RobotsTxtParser/blob/master/docs/methods/SitemapClient.md for documentation
15
 * @package vipnytt\RobotsTxtParser\Client\Directives
16
 */
17
class SitemapClient implements ClientInterface
18
{
19
    /**
20
     * Sitemaps
21
     * @var string[]
22
     */
23
    private $sitemaps = [];
24
25
    /**
26
     * SitemapClient constructor.
27
     *
28
     * @param string[] $sitemaps
29
     */
30
    public function __construct(array $sitemaps)
31
    {
32
        $this->sitemaps = $sitemaps;
33
    }
34
35
    /**
36
     * Export
37
     *
38
     * @return string[]
39
     */
40
    public function export()
41
    {
42
        return $this->sitemaps;
43
    }
44
}
45