InspectableContainer::getProvidedServiceNames()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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