1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67:
<?php
/**
* Payment Method
*/
namespace Omnipay\Common;
/**
* Payment Method
*
* This class defines a payment method to be used in the Omnipay system.
*
* @see Issuer
*/
class PaymentMethod
{
/**
* The ID of the payment method. Used as the payment method ID in the
* Issuer class.
*
* @see Issuer
*
* @var string
*/
protected $id;
/**
* The full name of the payment method
*
* @var string
*/
protected $name;
/**
* Create a new PaymentMethod
*
* @param string $id The identifier of this payment method
* @param string $name The name of this payment method
*/
public function __construct($id, $name)
{
$this->id = $id;
$this->name = $name;
}
/**
* The identifier of this payment method
*
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The name of this payment method
*
* @return string
*/
public function getName()
{
return $this->name;
}
}