public setCard ( |
||
$value | ||
return | Provides a fluent interface |
public function setCard($value)
{
if ($value && !$value instanceof CreditCard) {
$value = new CreditCard($value);
}
return $this->setParameter('card', $value);
}
/** * Sets the card information. * * @param CreditCard $value * @return AbstractRequest Provides a fluent interface */ public function setCard($value) { if ($value && is_array($value)) { $value = new CreditCard($value); } return parent::setCard($value); }