forked from LiveCarta/PayPal-PHP-SDK
Cleaned up Code Comments and added Type-Hinting to all Class/Functions
This commit is contained in:
@@ -1,61 +1,92 @@
|
||||
<?php
|
||||
|
||||
namespace PayPal\Api;
|
||||
|
||||
use PayPal\Common\PPModel;
|
||||
|
||||
class ItemList extends PPModel {
|
||||
/**
|
||||
* List of items.
|
||||
* @array
|
||||
* @param PayPal\Api\Item $items
|
||||
*/
|
||||
public function setItems($items) {
|
||||
$this->items = $items;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Class ItemList
|
||||
*
|
||||
* @property array|\PayPal\Api\Item items
|
||||
* @property \PayPal\Api\ShippingAddress shipping_address
|
||||
*/
|
||||
class ItemList extends PPModel
|
||||
{
|
||||
/**
|
||||
* Set Items
|
||||
* List of Items
|
||||
*
|
||||
* @param array|\PayPal\Api\Item $items
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems($items)
|
||||
{
|
||||
$this->items = $items;
|
||||
|
||||
/**
|
||||
* List of items.
|
||||
* @return PayPal\Api\Item
|
||||
*/
|
||||
public function getItems() {
|
||||
return $this->items;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Items
|
||||
* List of items
|
||||
*
|
||||
* @return \PayPal\Api\Item
|
||||
*/
|
||||
public function getItems()
|
||||
{
|
||||
return $this->items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shipping address.
|
||||
* @param PayPal\Api\ShippingAddress $shipping_address
|
||||
*/
|
||||
public function setShippingAddress($shipping_address) {
|
||||
$this->shipping_address = $shipping_address;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Set Shipping Address
|
||||
*
|
||||
* @param \PayPal\Api\ShippingAddress $shipping_address
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setShippingAddress($shipping_address)
|
||||
{
|
||||
$this->shipping_address = $shipping_address;
|
||||
|
||||
/**
|
||||
* Shipping address.
|
||||
* @return PayPal\Api\ShippingAddress
|
||||
*/
|
||||
public function getShippingAddress() {
|
||||
return $this->shipping_address;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shipping address.
|
||||
* @param PayPal\Api\ShippingAddress $shipping_address
|
||||
* @deprecated. Instead use setShippingAddress
|
||||
*/
|
||||
public function setShipping_address($shipping_address) {
|
||||
$this->shipping_address = $shipping_address;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Shipping address.
|
||||
* @return PayPal\Api\ShippingAddress
|
||||
* @deprecated. Instead use getShippingAddress
|
||||
*/
|
||||
public function getShipping_address() {
|
||||
return $this->shipping_address;
|
||||
}
|
||||
/**
|
||||
* Get Shipping Address
|
||||
*
|
||||
* @return \PayPal\Api\ShippingAddress
|
||||
*/
|
||||
public function getShippingAddress()
|
||||
{
|
||||
return $this->shipping_address;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Shipping Address
|
||||
*
|
||||
* @param \PayPal\Api\ShippingAddress $shipping_address
|
||||
*
|
||||
* @deprecated Use setShippingAddress
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setShipping_address($shipping_address)
|
||||
{
|
||||
$this->shipping_address = $shipping_address;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Shipping Address
|
||||
*
|
||||
* @deprecated Use getShippingAddress
|
||||
*
|
||||
* @return \PayPal\Api\ShippingAddress
|
||||
*/
|
||||
public function getShipping_address()
|
||||
{
|
||||
return $this->shipping_address;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user