ResolvedList   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 13
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A share() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Habemus;
5
6
use Countable;
7
use IteratorAggregate;
8
use Habemus\Utility\Lists\KeyValueList;
9
10
class ResolvedList implements IteratorAggregate, Countable
11
{
12
    use KeyValueList {
13
        set as private;
14
    }
15
16
    /**
17
     * @param string $id
18
     * @param mixed $resolved
19
     */
20
    public function share(string $id, $resolved): void
21
    {
22
        $this->set($id, $resolved);
23
    }
24
}
25