Esempio n. 1
0
 public function __construct($model)
 {
     if (false == (is_array($model) || $model instanceof \ArrayAccess)) {
         throw new InvalidArgumentException('Given model is invalid. Should be an array or ArrayAccess instance.');
     }
     parent::__construct($model);
 }
Esempio n. 2
0
 /**
  * @param mixed $model
  * @param int $paymentRequestN
  */
 public function __construct($model, $paymentRequestN)
 {
     parent::__construct($model);
     $this->paymentRequestN = $paymentRequestN;
 }
 /**
  * @param \ArrayAccess $details
  * @param \Klarna $klarna
  */
 public function __construct(\ArrayAccess $details, \Klarna $klarna)
 {
     parent::__construct($details);
     $this->klarna = $klarna;
 }
Esempio n. 4
0
 /**
  * @param mixed $model
  * @param bool $force
  */
 public function __construct($model, $force = false)
 {
     parent::__construct($model);
     $this->force = $force;
 }