/**
  * Constructor
  *
  * @param string|array $countries allowed countries
  */
 public function __construct($countries)
 {
     if (is_array($countries)) {
         $countries = implode(", ", $countries);
     }
     parent::__construct("This method is only available for customers from: {$countries}", 50025);
 }
 /**
  * Constructor
  *
  * @param mixed $language language
  */
 public function __construct($language)
 {
     parent::__construct("Unknown language! ({$language})", 50007);
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('Klarna instance not fully configured!', 50002);
 }
 /**
  * Constructor
  *
  * @param mixed $currency currency
  */
 public function __construct($currency)
 {
     parent::__construct("Unknown currency! ({$currency})", 50008);
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct("No address set!", 50035);
 }
 /**
  * Constructor
  *
  * @param mixed $price price
  */
 public function __construct($price)
 {
     parent::__construct("price/amount must be an integer and greater than 0! ({$price})", 50039);
 }
 /**
  * Constructor
  *
  * @param string $param parameter
  * @param string $type  type
  */
 public function __construct($param, $type)
 {
     parent::__construct("{$param} is not of the expected type. Expected: {$type}.", 50062);
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('You must set country first!', 50046);
 }
 /**
  * Constructor
  *
  * @param int $type type
  */
 public function __construct($type)
 {
     parent::__construct("Unknown address type: {$type}", 50012);
 }
 /**
  * Constructor
  *
  * @param string $className     classname
  * @param string $pclassStorage pcstorage class file
  */
 public function __construct($className, $pclassStorage)
 {
     parent::__construct("{$className} located in {$pclassStorage} is not a PCStorage instance.", 50052);
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('Shipping address country must match the country set!', 50041);
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct("PNO/SSN is not valid!", 50078);
 }
 /**
  * Constructor
  *
  * @param string $argument argument
  */
 public function __construct($argument)
 {
     parent::__construct("Argument '{$argument}' not set!", 50005);
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct("You must set country, language and currency!", 50023);
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct("Supplied address is not a KlarnaAddr object!", 50011);
 }
 /**
  * Constructor
  *
  * @param string $file filename
  */
 public function __construct($file)
 {
     parent::__construct("Unable to write to {$file}!");
 }
 /**
  * Constructor
  *
  * @param string $field config field
  */
 public function __construct($field)
 {
     parent::__construct("Config field '{$field}' is not valid!", 50003);
 }
Beispiel #18
0
 /**
  * Constructor
  *
  * @param string $file filename
  */
 public function __construct($file)
 {
     parent::__construct("Unable to parse XML file: {$file}!");
 }
 /**
  * Constructor
  *
  * @param int $encoding encoding
  */
 public function __construct($encoding)
 {
     parent::__construct("Unknown PNO/SSN encoding constant! ({$encoding})", 50091);
 }
 /**
  * Constructor
  *
  * @param mixed $country country
  */
 public function __construct($country)
 {
     parent::__construct("Unknown country! ({$country})", 50006);
 }
 /**
  * Constructor
  *
  * @param string $file filename
  */
 public function __construct($file)
 {
     parent::__construct("Unable to read from {$file}!");
 }