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); }
/** * @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; }
/** * @param mixed $model * @param bool $force */ public function __construct($model, $force = false) { parent::__construct($model); $this->force = $force; }