Completed
Push — 2.x ( ae2cb5...acdcc2 )
by Akihito
18s queued 13s
created

MultiBindings   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A merge() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Di\MultiBinding;
6
7
use ArrayObject;
8
9
use function array_merge_recursive;
10
11
/**
12
 * @extends ArrayObject<string, non-empty-array<array-key, LazyInteterface>>
13
 */
14
final class MultiBindings extends ArrayObject
15
{
16
    public function merge(self $multiBindings): void
17
    {
18
        $this->exchangeArray(
19
            array_merge_recursive($this->getArrayCopy(), $multiBindings->getArrayCopy())
20
        );
21
    }
22
}
23