Passed
Push — master ( 8cbf8f...6be9df )
by Jeroen
07:07 queued 04:27
created

SitemapItems::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace JeroenDesloovere\SitemapBundle\Item;
4
5
class SitemapItems
6
{
7
    /** @var SitemapItem[] */
8
    private $items;
9
10
    public function __construct()
11
    {
12
        $this->items = [];
13
    }
14
15
    public function add(SitemapItem $item): void
16
    {
17
        $this->items[] = $item;
18
    }
19
20
    public function getAll(): array
21
    {
22
        return $this->items;
23
    }
24
}
25