Passed
Branch dev (1a31b5)
by Dispositif
03:03
created

PageList   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPageTitles() 0 3 1
A __construct() 0 1 1
1
<?php
2
/**
3
 * This file is part of dispositif/wikibot application
4
 * 2019 © Philippe M. <[email protected]>
5
 * For the full copyright and MIT license information, please view the LICENSE file.
6
 */
7
8
declare(strict_types=1);
9
10
11
namespace App\Infrastructure;
12
13
14
class PageList implements PageListInterface
15
{
16
    protected $titles;
17
18
    /**
19
     * PageList constructor.
20
     *
21
     * @param $titles
22
     */
23
    public function __construct(array $titles) { $this->titles = $titles; }
24
25
    public function getPageTitles(): array
26
    {
27
        return $this->titles;
28
    }
29
}
30