Completed
Push — master ( b94124...de69d3 )
by Tim
15:15
created

Territory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setNameZh() 0 4 1
A getNameZh() 0 4 1
1
<?php
2
3
namespace SJBR\StaticInfoTables\Domain\Model;
4
5
/**
6
 * Territory
7
 */
8
class Territory extends AbstractEntity
9
{
10
    /**
11
     * Chinese name of the territory
12
     *
13
     * @var string
14
     */
15
    protected $nameZh = '';
16
17
    /**
18
     * Sets the Chinese name of the territory
19
     */
20
    public function setNameZh(string $nameZh):void
21
    {
22
        $this->nameZh = $nameZh;
23
    }
24
25
    /**
26
     * Returns the Chinese name of the territory
27
     */
28
    public function getNameZh():string
29
    {
30
        return $this->nameZh;
31
    }
32
}
33