public static function createCreditCard() { $card = new CreditCard(); $card->setType(self::$cardType); $card->setNumber(self::$cardNumber); $card->setExpireMonth(self::$expireMonth); $card->setExpireYear(self::$expireYear); $card->setCvv2(self::$cvv); $card->setFirstName(self::$firstName); $card->setLastName(self::$lastName); $card->setId(self::$id); $card->setValidUntil(self::$validUntil); $card->setState(self::$state); return $card; }