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

SitemapClient   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A export() 0 4 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