getCode() public method

Returns country code
public getCode ( ) : ValueObjects\Geography\CountryCode
return ValueObjects\Geography\CountryCode
示例#1
0
 public function testGetCode()
 {
     $italy = new Country(CountryCode::IT());
     $this->assertTrue($italy->getCode()->sameValueAs(CountryCode::IT()));
 }