NotificationRegistry   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A store() 0 3 1
A getItems() 0 3 1
1
<?php
2
3
namespace App\Registry;
4
5
class NotificationRegistry implements RegistryInterface
6
{
7
    protected $notifications = [];
8
    
9 6
    public function store(array $items = [])
10
    {
11 6
        $this->notifications = $items;
12 6
    }
13
    
14 5
    public function getItems(): array
15
    {
16 5
        return $this->notifications;
17
    }
18
}