InspectableContainer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getProvidedServiceNames() 0 8 1
1
<?php
2
3
namespace Storeman;
4
5
final class InspectableContainer extends \League\Container\Container
6
{
7
    /**
8
     * Builds and returns array of all provided service names.
9
     *
10
     * @return array
11
     */
12
    public function getProvidedServiceNames(): array
13
    {
14
        return array_merge(
15
            array_keys($this->definitions),
16
            array_keys($this->shared),
17
            array_keys($this->sharedDefinitions)
18
        );
19
    }
20
}
21