Ejemplo n.º 1
0
 /**
  * @param  string $Nationality
  * @return User
  */
 public function setNationality($Nationality)
 {
     if ($Nationality !== null && !Utils::isISO3166($Nationality)) {
         throw new \InvalidArgumentException(sprintf('Invalid nationality iso code: %s', $Nationality));
     }
     $this->Nationality = $Nationality;
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * @param  string      $Culture
  * @return PaymentCard
  */
 public function setCulture($Culture)
 {
     if ($Culture !== null && !Utils::isCulture($Culture)) {
         throw new \InvalidArgumentException('Culture is invalid');
     }
     $this->Culture = $Culture;
     return $this;
 }