SitemapClient::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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