Completed
Push — master ( e45dbf...3a73d5 )
by Nate
05:43 queued 04:08
created

EnvironmentMutator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getEnvironment() 0 4 1
A setEnvironment() 0 5 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://flipboxfactory.com/software/patron/license
6
 * @link       https://www.flipboxfactory.com/software/patron/
7
 */
8
9
namespace flipbox\patron\records\traits;
10
11
/**
12
 * @property string|null $environment
13
 *
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 1.0.0
16
 */
17
trait EnvironmentMutator
18
{
19
    /**
20
     * @inheritdoc
21
     */
22
    public function getEnvironment()
23
    {
24
        return $this->environment;
25
    }
26
27
    /**
28
     * @inheritdoc
29
     */
30
    public function setEnvironment($environment)
31
    {
32
        $this->environment = (int)$environment;
33
        return $this;
34
    }
35
}
36