private function createPaymillMethod(array $data)
    {
        $paymentMethod = new PaymillMethod();
        $paymentMethod
            ->setApiToken($data['api_token'])
            ->setCreditCardNumber($data['credit_card_1'] . $data['credit_card_2'] . $data['credit_card_3'] . $data['credit_card_4'])
            ->setCreditCardOwner($data['credit_card_owner'])
            ->setCreditCardExpirationMonth($data['credit_card_expiration_month'])
            ->setCreditCardExpirationYear($data['credit_card_expiration_year'])
            ->setCreditCardSecurity($data['credit_card_security']);

        return $paymentMethod;
    }
private function createPaymillMethod(array $data)
    {
        $paymentMethod = new PaymillMethod();
        $paymentMethod
            ->setApiToken($data['api_token'])
            ->setCreditCardNumber($data['credit_card_1'] . $data['credit_card_2'] . $data['credit_card_3'] . $data['credit_card_4'])
            ->setCreditCardOwner($data['credit_card_owner'])
            ->setCreditCardExpirationMonth($data['credit_card_expiration_month'])
            ->setCreditCardExpirationYear($data['credit_card_expiration_year'])
            ->setCreditCardSecurity($data['credit_card_security']);

        return $paymentMethod;
    }
private function createPaymillMethod ( array $ data ) { $ paymentMethod = new PaymillMethod ( ) ; $ paymentMethod -> setApiToken ( $ data [ 'api_token' ] ) -> setCreditCardNumber ( $ data [ 'credit_card_1' ] . $ data [ 'credit_card_2' ] . $ data [ 'credit_card_3' ] . $ data [ 'credit_card_4' ] ) -> setCreditCardOwner ( $ data [ 'credit_card_owner' ] ) -> setCreditCardExpirationMonth ( $ data [ 'credit_card_expiration_month' ] ) -> setCreditCardExpirationYear ( $ data [ 'credit_card_expiration_year' ] ) -> setCreditCardSecurity ( $ data [ 'credit_card_security' ] ) ; return $ paymentMethod ; }
Given some data, creates a PaymillMethod object

@param array $data Data

@return PaymillMethod PaymillMethod instance
Given some data creates a PaymillMethod object