Completed
Pull Request — master (#2)
by
unknown
15:15
created

Territory::getNameZh()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace SJBR\StaticInfoTables\Domain\Model;
3
/***************************************************************
4
*  Copyright notice
5
*
6
*  (c) 2017 Jan Bergmann <[email protected]>
7
*
8
*  All rights reserved
9
*
10
*  This script is part of the TYPO3 project. The TYPO3 project is
11
*  free software; you can redistribute it and/or modify
12
*  it under the terms of the GNU General Public License as published by
13
*  the Free Software Foundation; either version 2 of the License, or
14
*  (at your option) any later version.
15
*
16
*  The GNU General Public License can be found at
17
*  http://www.gnu.org/copyleft/gpl.html.
18
*
19
*  This script is distributed in the hope that it will be useful,
20
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
21
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
*  GNU General Public License for more details.
23
*
24
*  This copyright notice MUST APPEAR in all copies of the script!
25
***************************************************************/
26
/**
27
 * The Territory model
28
 *
29
 * @copyright Copyright belongs to the respective authors
30
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
31
 */
32
33
class Territory extends AbstractEntity {
34
	/**
35
	 * Chinese name of the territory
36
	 * @var string
37
	 */
38
	protected $nameZh = '';
39
40
	/**
41
	 * Sets the Chinese name of the territory
42
	 *
43
	 * @param string $nameZh
44
	 *
45
	 * @return void
46
	 */
47
	public function setNameZh($nameZh) {
48
		$this->nameZh = $nameZh;
49
	}
50
51
	/**
52
	 * Returns the Chinese name of the territory
53
	 *
54
	 * @return string
55
	 */
56
	public function getNameZh() {
57
		return $this->nameZh;
58
	}
59
}
60