Completed
Push — master ( 6f7871 )
by Simone
02:56
created

Configurator::defaults()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
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
    private $ranges;
0 ignored issues
show
Unused Code introduced by
The property $ranges is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
12
13
    public function __construct(
14
        $resourceName,
15
        Container $container
16
    ) {
17
        $this->resourceName = $resourceName;
18
        $this->container = $container;
19
    }
20
21
    public function allowed()
22
    {
23
        return $this->container->allowed(
24
            $this->resourceName
25
        );
26
    }
27
28
    public function mandatory()
29
    {
30
        return $this->container->mandatory(
31
            $this->resourceName
32
        );
33
    }
34
35
    public function defaults()
36
    {
37
        return $this->container->defaults(
38
            $this->resourceName
39
        );
40
    }
41
42
    public function rules()
43
    {
44
        return $this->container->rules(
45
            $this->resourceName
46
        );
47
    }
48
49
    public function allowedValues()
50
    {
51
        return $this->container->allowedValues(
52
            $this->resourceName
53
        );
54
    }
55
56
    public function resourceName()
57
    {
58
        return $this->resourceName;
59
    }
60
61
    public function container()
62
    {
63
        return $this->container;
64
    }
65
66
    public function rewrites()
67
    {
68
        return $this->container->rewrites();
69
    }
70
71
    public function ranges()
72
    {
73
        return $this->container->ranges(
74
            $this->resourceName
75
        );
76
    }
77
78
    public function globals()
79
    {
80
        return $this->container->globals();
81
    }
82
}
83