GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ConfigurationBuilder   A
last analyzed

Complexity

Total Complexity 13

Size/Duplication

Total Lines 119
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 13
lcom 1
cbo 1
dl 0
loc 119
ccs 38
cts 38
cp 1
rs 10
c 0
b 0
f 0

13 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setBaseTemplate() 0 5 1
A setBundleViews() 0 5 1
A setFilterType() 0 5 1
A setWithoutBulk() 0 5 1
A setWithoutShow() 0 5 1
A setWithoutWrite() 0 5 1
A setFormat() 0 5 1
A setOverwrite() 0 5 1
A setRoutePrefix() 0 5 1
A setWithoutPageSize() 0 5 1
A setWithoutSorting() 0 5 1
A getConfiguration() 0 4 1
1
<?php
2
3
namespace Petkopara\CrudGeneratorBundle\Configuration;
4
5
/**
6
 * Description of ConfigurationBuilder
7
 *
8
 * @author Petko Petkov <[email protected]>
9
 */
10
class ConfigurationBuilder implements ConfigurationBuilderInterface
11
{
12
    /*
13
     * @var Configuration configuration
14
     */
15
16
    private $configuration;
17
18 15
    public function __construct()
19
    {
20 15
        $this->configuration = new Configuration();
21 15
    }
22
23
    /**
24
     * 
25
     * @param type $baseTemplate
26
     * @return ConfigurationBuilder
27
     */
28 15
    public function setBaseTemplate($baseTemplate)
29
    {
30 15
        $this->configuration->setBaseTemplate($baseTemplate);
31 15
        return $this;
32
    }
33
34
    /**
35
     * 
36
     * @param type $bundleViews
37
     * @return $this
38
     */
39 15
    public function setBundleViews($bundleViews)
40
    {
41 15
        $this->configuration->setBundleViews($bundleViews);
42 15
        return $this;
43
    }
44
45
    /**
46
     * 
47
     * @param type $filterType
48
     * @return $this
49
     */
50 15
    public function setFilterType($filterType)
51
    {
52 15
        $this->configuration->setFilterType($filterType);
53 15
        return $this;
54
    }
55
56
    /**
57
     * 
58
     * @param type $withoutBulk
59
     * @return $this
60
     */
61 15
    public function setWithoutBulk($withoutBulk)
62
    {
63 15
        $this->configuration->setWithoutBulk($withoutBulk);
64 15
        return $this;
65
    }
66
67
    /**
68
     * 
69
     * @param type $withoutShow
70
     * @return $this
71
     */
72 15
    public function setWithoutShow($withoutShow)
73
    {
74 15
        $this->configuration->setWithoutShow($withoutShow);
75 15
        return $this;
76
    }
77
78
    /**
79
     * 
80
     * @param type $withoutWrite
81
     * @return $this
82
     */
83 15
    public function setWithoutWrite($withoutWrite)
84
    {
85 15
        $this->configuration->setWithoutWrite($withoutWrite);
86 15
        return $this;
87
    }
88
89 15
    public function setFormat($format)
90
    {
91 15
        $this->configuration->setFormat($format);
92 15
        return $this;
93
    }
94
95 15
    public function setOverwrite($overwrite)
96
    {
97 15
        $this->configuration->setOverwrite($overwrite);
98 15
        return $this;
99
    }
100
101 15
    public function setRoutePrefix($routePrefix)
102
    {
103 15
        $this->configuration->setRoutePrefix($routePrefix);
104 15
        return $this;
105
    }
106
107 15
    public function setWithoutPageSize($withoutPageSize)
108
    {
109 15
        $this->configuration->setWithoutPageSize($withoutPageSize);
110 15
        return $this;
111
    }
112
113 15
    public function setWithoutSorting($withoutSorting)
114
    {
115 15
        $this->configuration->setWithoutSorting($withoutSorting);
116 15
        return $this;
117
    }
118
119
    /**
120
     * 
121
     * @return Configuration 
122
     */
123 15
    public function getConfiguration()
124
    {
125 15
        return $this->configuration;
126
    }
127
128
}
129