StaticResourcesPlugin   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getResources() 0 3 1
1
<?php
2
3
4
namespace Apie\StaticResourcesPlugin;
5
6
use Apie\Core\PluginInterfaces\ResourceProviderInterface;
7
8
class StaticResourcesPlugin implements ResourceProviderInterface
9
{
10
    private $resources;
11
12
    /**
13
     * @param array $resources
14
     */
15
    public function __construct(array $resources)
16
    {
17
        $this->resources = $resources;
18
    }
19
    /**
20
     * Returns a list of Api resources.
21
     *
22
     * @return string[]
23
     */
24
    public function getResources(): array
25
    {
26
        return $this->resources;
27
    }
28
}
29