Completed
Pull Request — master (#65)
by Simone
02:57
created

Configurator::globals()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Sensorario\Resources;
4
5
final class Configurator 
6
{
7
    private $container;
8
9
    private $resourceName;
10
11
    public function __construct(
12
        $resourceName,
13
        Container $container
14
    ) {
15
        $this->resourceName = $resourceName;
16
        $this->container = $container;
17
    }
18
19
    public function allowed()
20
    {
21
        return $this->container->allowed(
22
            $this->resourceName
23
        );
24
    }
25
26
    public function mandatory()
27
    {
28
        return $this->container->mandatory(
29
            $this->resourceName
30
        );
31
    }
32
33
    public function defaults()
34
    {
35
        return $this->container->defaults(
36
            $this->resourceName
37
        );
38
    }
39
40
    public function rules()
41
    {
42
        return $this->container->rules(
43
            $this->resourceName
44
        );
45
    }
46
47
    public function allowedValues()
48
    {
49
        return $this->container->allowedValues(
50
            $this->resourceName
51
        );
52
    }
53
54
    public function resourceName()
55
    {
56
        return $this->resourceName;
57
    }
58
59
    public function container()
60
    {
61
        return $this->container;
62
    }
63
64
    public function globals()
65
    {
66
        return $this->container->globals();
67
    }
68
}
69