Ejemplo n.º 1
0
function createCreditCard()
{
    $creditCard = new CreditCard();
    $creditCard->setHolder("João D. F. Silva");
    $creditCard->setNumber("4111111111111111");
    $creditCard->setSecurityCode("123");
    $creditCard->setMaturityMonth("01");
    $creditCard->setMaturityYear("2016");
    return $creditCard;
}