| 1 |
<?php |
| 2 |
namespace Payplug; |
| 3 |
|
| 4 |
/** |
| 5 |
* The Card DAO simplifies the access to most useful methods |
| 6 |
**/ |
| 7 |
class Card |
| 8 |
{ |
| 9 |
/** |
| 10 |
* Delete a card. |
| 11 |
* |
| 12 |
* @param string|\Payplug\Resource\Card $card the card ID or object |
| 13 |
* @param Payplug $payplug the client configuration |
| 14 |
* |
| 15 |
* @return null|Resource\Card the deleted card or null on error |
| 16 |
* |
| 17 |
* @throws Exception\ConfigurationNotSetException |
| 18 |
*/ |
| 19 |
public static function delete($card, Payplug $payplug = null) |
| 20 |
{ |
| 21 |
return Resource\Card::deleteCard($card, $payplug); |
| 22 |
} |
| 23 |
}; |