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/InvoiceSearchResponse.php
japatel 9c0827643b Renaming Namespaces and Organizing Classes
- Updated OpenId classes to be in API namespace
- Updated PP Naming Convention to PayPal Naming Convention
- FormatConverter Class got its own namespace
- Handlers are grouped in Handler namespace
- Samples and Tests Updated Accordingly
2014-12-18 14:16:41 -06:00

121 lines
2.3 KiB
PHP

<?php
namespace PayPal\Api;
use PayPal\Common\PayPalModel;
/**
* Class InvoiceSearchResponse
*
*
*
* @package PayPal\Api
*
* @property int total_count
* @property \PayPal\Api\Invoice[] invoices
*/
class InvoiceSearchResponse extends PayPalModel
{
/**
* Total number of invoices.
*
* @param int $total_count
*
* @return $this
*/
public function setTotalCount($total_count)
{
$this->total_count = $total_count;
return $this;
}
/**
* Total number of invoices.
*
* @return int
*/
public function getTotalCount()
{
return $this->total_count;
}
/**
* Total number of invoices.
*
* @deprecated Instead use setTotalCount
*
* @param int $total_count
* @return $this
*/
public function setTotal_count($total_count)
{
$this->total_count = $total_count;
return $this;
}
/**
* Total number of invoices.
* @deprecated Instead use getTotalCount
*
* @return int
*/
public function getTotal_count()
{
return $this->total_count;
}
/**
* List of invoices belonging to a merchant.
*
* @param \PayPal\Api\Invoice[] $invoices
*
* @return $this
*/
public function setInvoices($invoices)
{
$this->invoices = $invoices;
return $this;
}
/**
* List of invoices belonging to a merchant.
*
* @return \PayPal\Api\Invoice[]
*/
public function getInvoices()
{
return $this->invoices;
}
/**
* Append Invoices to the list.
*
* @param \PayPal\Api\Invoice $invoice
* @return $this
*/
public function addInvoice($invoice)
{
if (!$this->getInvoices()) {
return $this->setInvoices(array($invoice));
} else {
return $this->setInvoices(
array_merge($this->getInvoices(), array($invoice))
);
}
}
/**
* Remove Invoices from the list.
*
* @param \PayPal\Api\Invoice $invoice
* @return $this
*/
public function removeInvoice($invoice)
{
return $this->setInvoices(
array_diff($this->getInvoices(), array($invoice))
);
}
}