| 1 | <?php  | 
            ||
| 13 | class Nationality implements NationalityInterface  | 
            ||
| 14 | { | 
            ||
| 15 | /**  | 
            ||
| 16 | * @var string  | 
            ||
| 17 | */  | 
            ||
| 18 | protected $name;  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * @var string  | 
            ||
| 22 | */  | 
            ||
| 23 | protected $pinyin;  | 
            ||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * @var number  | 
            ||
| 27 | */  | 
            ||
| 28 | protected $population;  | 
            ||
| 29 | |||
| 30 | public function __construct($name, $pinyin, $population)  | 
            ||
| 36 | |||
| 37 | /**  | 
            ||
| 38 |      * {@inheritdoc} | 
            ||
| 39 | */  | 
            ||
| 40 | public function getName()  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 |      * {@inheritdoc} | 
            ||
| 47 | */  | 
            ||
| 48 | public function getPinyin()  | 
            ||
| 52 | |||
| 53 | /**  | 
            ||
| 54 |      * {@inheritdoc} | 
            ||
| 55 | */  | 
            ||
| 56 | public function getPopulation()  | 
            ||
| 60 | |||
| 61 | /**  | 
            ||
| 62 |      * {@inheritdoc} | 
            ||
| 63 | */  | 
            ||
| 64 | public function jsonSerialize()  | 
            ||
| 72 | }  |