Source of file PaymentMethods.php

Size: 1,476 Bytes - Last Modified: 2015-02-05T12:57:19+01:00

/www-data/git/ricardo/src/Diglin/Ricardo/Enums/PaymentMethods.php

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
<?php
/**
 * Diglin GmbH - Switzerland
 *
 * This file is part of a Diglin GmbH module.
 *
 * This Diglin GmbH module is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * This script is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * @author      Sylvain Rayé <support at diglin.com>
 * @category    Diglin
 * @package     Diglin_Ricardo
 * @copyright   Copyright (c) 2011-2015 Diglin (http://www.diglin.com)
 * @license     http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
 */

namespace Diglin\Ricardo\Enums;

class PaymentMethods extends AbstractEnums
{
    const TYPE_BANK_TRANSFER = 8192;

    const TYPE_CASH = 1073741824;

    const TYPE_CREDIT_CARD = 262144;

    const TYPE_OTHER = 0;

    /**
     * @return array
     */
    public static function getEnums()
    {
        return array(
            array('label' => 'TYPE_BANK_TRANSFER', 'value' => self::TYPE_BANK_TRANSFER),
            array('label' => 'TYPE_CASH', 'value' => self::TYPE_CASH),
            array('label' => 'TYPE_CREDIT_CARD', 'value' => self::TYPE_CREDIT_CARD),
            array('label' => 'TYPE_OTHER', 'value' => self::TYPE_OTHER)
        );
    }
}