Ejemplo n.º 1
0
 /**
  * @param string $name
  * @param string $cacheDir
  */
 public function __construct($name, $cacheDir)
 {
     parent::__construct($name);
     $this->name = $name;
     if (null !== $cacheDir && is_file($cache = $cacheDir . '/ruudk_payment_mollie_issuers.php')) {
         $this->issuers = (require $cache);
     }
 }
Ejemplo n.º 2
0
 /**
  * @param string $name
  * @param array  $issuers
  */
 public function __construct($name, array $issuers)
 {
     parent::__construct($name);
     $this->name = $name;
     foreach ($issuers as $issuerId => $issuerName) {
         $this->issuers[] = new Issuer($issuerId, $issuerName, 'ideal');
     }
 }