ResolvedList::share()   A
last analyzed

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
nc 1
nop 2
dl 0
loc 3
rs 10
c 1
b 0
f 0
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