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

PageList::getPageTitles()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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