This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/lib/PayPal/Api/NameValuePair.php
japatel 61a52e4623 Enabled EC Parameters support
- Updated Api to enabled EC Parameters
- Updated Tests
- Updated Logging Manager
- Added a feature to do validation on accessors.
2014-10-10 10:50:49 -05:00

69 lines
1.2 KiB
PHP

<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;
/**
* Class NameValuePair
*
* Used to define a type for name-value pairs. The use of name value pairs in an API should be limited and approved by architecture.
*
* @package PayPal\Api
*
* @property string name
* @property string value
*/
class NameValuePair extends PPModel
{
/**
* Key for the name value pair. The value name types should be correlated
*
*
* @param string $name
*
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Key for the name value pair. The value name types should be correlated
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Value for the name value pair.
*
*
* @param string $value
*
* @return $this
*/
public function setValue($value)
{
$this->value = $value;
return $this;
}
/**
* Value for the name value pair.
*
* @return string
*/
public function getValue()
{
return $this->value;
}
}