<?php
/**
*
*
* @author Michael J. Burgess
* @package SnPayPal
* @copyright Michael J. Burgess, 2008
* @version 1.0
* @licence MIT
*/
/**
* Parameter supplied to SnPayPalApi->callApi
* representing a SOAP/XML element which is sent to paypal
*
*/
class SnPayPalApiParameter
{
public $name;
public $value;
public $type;
public $attribute;
public function __construct($name, $value, $type, $attribute = '')
{
$this->name = $name;
$this->value = (is_array($value)) ? SnPayPalApiInterface::arrayToXml($value) : $value;
$this->type = $type;
$this->attribute = $attribute;
}
}
?>