Tenant::setKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Vivait\TenantBundle\Model;
4
5
class Tenant {
6
    /**
7
     * @var string
8
     */
9
    private $key;
10
11
    /**
12
     * @param string $key The unique identifier for the tenant
13
     */
14
    public function __construct( $key ) {
15
        $this->key = $key;
16
    }
17
18
    /**
19
     * Gets key
20
     * @return string
21
     */
22
    public function getKey() {
23
        return $this->key;
24
    }
25
26
    /**
27
     * Sets key
28
     * @param string $key
29
     * @return $this
30
     */
31
    public function setKey( $key ) {
32
        $this->key = $key;
33
34
        return $this;
35
    }
36
}
37