Completed
Push — dev-master ( 37b687...4cdff6 )
by Derek Stephen
55s
created

HasSiteConfigTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 21
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSiteConfig() 0 4 1
A setSiteConfig() 0 4 1
1
<?php
2
3
namespace Bone\Traits;
4
5
use Bone\Server\SiteConfig;
6
7
trait HasSiteConfigTrait
8
{
9
    /** @var SiteConfig $siteConfig */
10
    private $siteConfig;
11
12
    /**
13
     * @return SiteConfig
14
     */
15 2
    public function getSiteConfig(): SiteConfig
16
    {
17 2
        return $this->siteConfig;
18
    }
19
20
    /**
21
     * @param SiteConfig $siteConfig
22
     */
23 2
    public function setSiteConfig(SiteConfig $siteConfig): void
24
    {
25 2
        $this->siteConfig = $siteConfig;
26 2
    }
27
}
28