Completed
Push — 2.0 ( ee0168...76e968 )
by Marco
11:26
created

ConfigurationTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 33
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfiguration() 0 5 1
A setConfiguration() 0 7 1
1
<?php namespace Comodojo\Extender\Traits;
2
3
use \Comodojo\Foundation\Base\Configuration;
4
5
trait ConfigurationTrait {
6
7
    /**
8
     * @var Configuration
9
     */
10
    protected $configuration;
11
12
    /**
13
     * Get current configuration
14
     *
15
     * @return Configuration
16
     */
17
    public function getConfiguration() {
18
19
        return $this->configuration;
20
21
    }
22
23
    /**
24
     * Set current configuration
25
     *
26
     * @param Configuration $configuration
27
     * @return self
28
     */
29
    public function setConfiguration(Configuration $configuration) {
30
31
        $this->configuration = $configuration;
32
33
        return $this;
34
35
    }
36
37
}
38