Completed
Push — master ( 1b6743...e69112 )
by Jan-Petter
9s
created

SitemapClient::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace vipnytt\RobotsTxtParser\Client\Directives;
3
4
/**
5
 * Class SitemapClient
6
 *
7
 * @package vipnytt\RobotsTxtParser\Client\Directives
8
 */
9
class SitemapClient implements ClientInterface
10
{
11
    /**
12
     * Sitemaps
13
     * @var string[]
14
     */
15
    private $sitemaps = [];
16
17
    /**
18
     * SitemapClient constructor.
19
     *
20
     * @param string[] $sitemaps
21
     */
22
    public function __construct(array $sitemaps)
23
    {
24
        $this->sitemaps = $sitemaps;
25
    }
26
27
    /**
28
     * Export
29
     *
30
     * @return string[]
31
     */
32
    public function export()
33
    {
34
        return $this->sitemaps;
35
    }
36
}
37