Skip to content

Commit

Permalink
Add additional documentation describing the options array
Browse files Browse the repository at this point in the history
  • Loading branch information
brandur committed May 10, 2017
1 parent 343b3da commit c549665
Show file tree
Hide file tree
Showing 28 changed files with 57 additions and 28 deletions.
3 changes: 2 additions & 1 deletion lib/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public function instanceUrl()
}

/**
* @param array|string|null $id
* @param array|string|null $id The ID of the account to retrieve, or an
* options array containing an `id` key.
* @param array|string|null $opts
*
* @return Account
Expand Down
3 changes: 2 additions & 1 deletion lib/ApplePayDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public static function classUrl()
}

/**
* @param array|string $id The ID of the domain to retrieve.
* @param array|string $id The ID of the domain to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return ApplePayDomain
Expand Down
3 changes: 2 additions & 1 deletion lib/ApplicationFee.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public static function className()
}

/**
* @param array|string $id The ID of the application fee to retrieve.
* @param array|string $id The ID of the application fee to retrieve, or an
* options array containing an `id` key.
* @param array|string|null $opts
*
* @return ApplicationFee
Expand Down
3 changes: 2 additions & 1 deletion lib/BalanceTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public static function classUrl()
}

/**
* @param array|string $id The ID of the balance transaction to retrieve.
* @param array|string $id The ID of the balance transaction to retrieve,
* or an options array containing an `id` key.
* @param array|string|null $opts
*
* @return BalanceTransaction
Expand Down
3 changes: 2 additions & 1 deletion lib/BitcoinReceiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function instanceUrl()
}

/**
* @param array|string $id The ID of the Bitcoin Receiver to retrieve.
* @param array|string $id The ID of the bitcoin receiver to retrieve, or
* an options array containing an `id` key.
* @param array|string|null $opts
*
* @return BitcoinReceiver
Expand Down
3 changes: 2 additions & 1 deletion lib/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
class Charge extends ApiResource
{
/**
* @param array|string $id The ID of the charge to retrieve.
* @param array|string $id The ID of the charge to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $options
*
* @return Charge
Expand Down
4 changes: 3 additions & 1 deletion lib/CountrySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ public static function className()
}

/**
* @param array|string $country The ISO country code of the country we retrieve the CountrySpec for.
* @param array|string $country The ISO country code of the country we
* retrieve the country specfication for, or an options array
* containing an `id` containing that code.
* @param array|string|null $opts
*
* @return CountrySpec
Expand Down
3 changes: 2 additions & 1 deletion lib/Coupon.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
class Coupon extends ApiResource
{
/**
* @param array|string $id The ID of the coupon to retrieve.
* @param array|string $id The ID of the coupon to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return Coupon
Expand Down
3 changes: 2 additions & 1 deletion lib/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
class Customer extends ApiResource
{
/**
* @param array|string $id The ID of the customer to retrieve.
* @param array|string $id The ID of the customer to retrieve, or an
* options array containing an `id` key.
* @param array|string|null $opts
*
* @return Customer
Expand Down
3 changes: 2 additions & 1 deletion lib/Dispute.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
class Dispute extends ApiResource
{
/**
* @param array|string $id The ID of the dispute to retrieve.
* @param array|string $id The ID of the dispute to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $options
*
* @return Dispute
Expand Down
3 changes: 2 additions & 1 deletion lib/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
class Event extends ApiResource
{
/**
* @param array|string $id The ID of the event to retrieve.
* @param array|string $id The ID of the event to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return Event
Expand Down
3 changes: 2 additions & 1 deletion lib/FileUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public static function className()
}

/**
* @param array|string $id The ID of the file upload to retrieve.
* @param array|string $id The ID of the file upload to retrieve, or an
* options array containing an `id key.
* @param array|string|null $opts
*
* @return FileUpload
Expand Down
3 changes: 2 additions & 1 deletion lib/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public static function create($params = null, $opts = null)
}

/**
* @param array|string $id The ID of the invoice to retrieve.
* @param array|string $id The ID of the invoice to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return Invoice
Expand Down
3 changes: 2 additions & 1 deletion lib/InvoiceItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
class InvoiceItem extends ApiResource
{
/**
* @param array|string $id The ID of the invoice item to retrieve.
* @param array|string $id The ID of the invoice item to retrieve, or an
* options array containing an `id` key.
* @param array|string|null $opts
*
* @return InvoiceItem
Expand Down
3 changes: 2 additions & 1 deletion lib/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
class Order extends ApiResource
{
/**
* @param array|string $id The ID of the Order to retrieve.
* @param array|string $id The ID of the order to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return Order
Expand Down
3 changes: 2 additions & 1 deletion lib/OrderReturn.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
class OrderReturn extends ApiResource
{
/**
* @param array|string $id The ID of the OrderReturn to retrieve.
* @param array|string $id The ID of the order return to retrieve, or an
* options array containing an `id` field.
* @param array|string|null $opts
*
* @return Order
Expand Down
3 changes: 2 additions & 1 deletion lib/Payout.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
class Payout extends ApiResource
{
/**
* @param array|string $id The ID of the payout to retrieve.
* @param array|string $id The ID of the payout to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return Payout
Expand Down
3 changes: 2 additions & 1 deletion lib/Plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
class Plan extends ApiResource
{
/**
* @param array|string $id The ID of the plan to retrieve.
* @param array|string $id The ID of the plan to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return Plan
Expand Down
3 changes: 2 additions & 1 deletion lib/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
class Product extends ApiResource
{
/**
* @param array|string $id The ID of the Product to retrieve.
* @param array|string $id The ID of the product to retrieve, or an options
* array contianing an `id` key.
* @param array|string|null $opts
*
* @return Product
Expand Down
3 changes: 2 additions & 1 deletion lib/Recipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
class Recipient extends ApiResource
{
/**
* @param array|string $id The ID of the recipient to retrieve.
* @param array|string $id The ID of the recipient to retrieve, or an
* options array containing an `id` key.
* @param array|string|null $opts
*
* @return Recipient
Expand Down
3 changes: 2 additions & 1 deletion lib/Refund.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class Refund extends ApiResource
{

/**
* @param array|string $id The ID of the refund to retrieve.
* @param array|string $id The ID of the refund to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $options
*
* @return Refund
Expand Down
3 changes: 2 additions & 1 deletion lib/SKU.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
class SKU extends ApiResource
{
/**
* @param array|string $id The ID of the SKU to retrieve.
* @param array|string $id The ID of the SKU to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return SKU
Expand Down
3 changes: 2 additions & 1 deletion lib/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
class Source extends ApiResource
{
/**
* @param array|string $id The ID of the Source to retrieve.
* @param array|string $id The ID of the source to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return Source
Expand Down
3 changes: 2 additions & 1 deletion lib/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class Subscription extends ApiResource
const STATUS_UNPAID = 'unpaid';

/**
* @param array|string $id The ID of the subscription to retrieve.
* @param array|string $id The ID of the subscription to retrieve, or an
* options array containing an `id` key.
* @param array|string|null $opts
*
* @return Subscription
Expand Down
3 changes: 2 additions & 1 deletion lib/SubscriptionItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public static function className()
}

/**
* @param array|string $id The ID of the subscription item to retrieve.
* @param array|string $id The ID of the subscription item to retrieve, or
* an options array containing an `id` key.
* @param array|string|null $opts
*
* @return SubscriptionItem
Expand Down
3 changes: 2 additions & 1 deletion lib/ThreeDSecure.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public static function classUrl()
}

/**
* @param array|string $id The ID of the 3DS auth to retrieve.
* @param array|string $id The ID of the 3DS auth to retrieve, or an
* options array contianing an `id` key.
* @param array|string|null $options
*
* @return ThreeDSecure
Expand Down
3 changes: 2 additions & 1 deletion lib/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
class Token extends ApiResource
{
/**
* @param array|string $id The ID of the token to retrieve.
* @param array|string $id The ID of the token to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return Token
Expand Down
3 changes: 2 additions & 1 deletion lib/Transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
class Transfer extends ApiResource
{
/**
* @param array|string $id The ID of the transfer to retrieve.
* @param array|string $id The ID of the transfer to retrieve, or an
* options array containing an `id` key.
* @param array|string|null $opts
*
* @return Transfer
Expand Down

0 comments on commit c549665

Please sign in to comment.