CityEntity   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getOwner() 0 4 1
A setOwner() 0 4 1
1
<?php
2
3
namespace OpenTribes\Core\Entity;
4
5
6
class CityEntity {
7
    /**
8
     * @var UserEntity
9
     */
10
    private $owner;
11
12
    /**
13
     * @return UserEntity
14
     */
15 2
    public function getOwner()
16
    {
17 2
        return $this->owner;
18
    }
19
20
    /**
21
     * @param UserEntity $owner
22
     */
23 2
    public function setOwner(UserEntity $owner)
24
    {
25 2
        $this->owner = $owner;
26 2
    }
27
28
29
}