Tenant   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 32
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getKey() 0 3 1
A setKey() 0 5 1
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