PayPal\Api\Item::addSupplementaryData PHP Method

addSupplementaryData() public method

Append SupplementaryData to the list.
Deprecation: Not publicly available
public addSupplementaryData ( PayPal\Api\NameValuePair $nameValuePair )
$nameValuePair PayPal\Api\NameValuePair
    public function addSupplementaryData($nameValuePair)
    {
        if (!$this->getSupplementaryData()) {
            return $this->setSupplementaryData(array($nameValuePair));
        } else {
            return $this->setSupplementaryData(array_merge($this->getSupplementaryData(), array($nameValuePair)));
        }
    }