Example #1
0
 /**
  * @param CountryCode $countryCode
  * @param string $countryName
  */
 public function __construct(CountryCode $countryCode, $countryName)
 {
     if (!is_string($countryName)) {
         throw InvalidArgumentException::invalidType('string', 'countryName', $countryName);
     }
     $this->countryCode = $countryCode;
     $this->countryName = $countryName;
 }