Location: PHPKode > scripts > PayPal PHP SDK > rest-api-sdk-php-0.7.0/lib/PayPal/Api/Item.php
<?php
namespace PayPal\Api;

use PayPal\Common\PPModel;

class Item extends PPModel {
	/**
	 * Number of items.
	 * @param string $quantity
	 */
	public function setQuantity($quantity) {
		$this->quantity = $quantity;
		return $this;
	}

	/**
	 * Number of items.
	 * @return string
	 */
	public function getQuantity() {
		return $this->quantity;
	}


	/**
	 * Name of the item.
	 * @param string $name
	 */
	public function setName($name) {
		$this->name = $name;
		return $this;
	}

	/**
	 * Name of the item.
	 * @return string
	 */
	public function getName() {
		return $this->name;
	}


	/**
	 * Cost of the item.
	 * @param string $price
	 */
	public function setPrice($price) {
		$this->price = $price;
		return $this;
	}

	/**
	 * Cost of the item.
	 * @return string
	 */
	public function getPrice() {
		return $this->price;
	}


	/**
	 * 3-letter Currency Code
	 * @param string $currency
	 */
	public function setCurrency($currency) {
		$this->currency = $currency;
		return $this;
	}

	/**
	 * 3-letter Currency Code
	 * @return string
	 */
	public function getCurrency() {
		return $this->currency;
	}


	/**
	 * Number or code to identify the item in your catalog/records.
	 * @param string $sku
	 */
	public function setSku($sku) {
		$this->sku = $sku;
		return $this;
	}

	/**
	 * Number or code to identify the item in your catalog/records.
	 * @return string
	 */
	public function getSku() {
		return $this->sku;
	}


}
Return current item: PayPal PHP SDK