Skip to content

Commit

Permalink
Update retrieve method documentation to accept arrays
Browse files Browse the repository at this point in the history
Retrieve methods can take an array in some cases like when an expansion
is requested. This patch updates documentation to better show that.

Fixes stripe#346.
  • Loading branch information
brandur committed May 10, 2017
1 parent 0757eb4 commit 343b3da
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion lib/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function instanceUrl()
}

/**
* @param string|null $id
* @param array|string|null $id
* @param array|string|null $opts
*
* @return Account
Expand Down
2 changes: 1 addition & 1 deletion lib/ApplePayDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function classUrl()
}

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

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

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

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

/**
* @param 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 CountrySpec for.
* @param array|string|null $opts
*
* @return CountrySpec
Expand Down
2 changes: 1 addition & 1 deletion lib/Coupon.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Coupon extends ApiResource
{
/**
* @param string $id The ID of the coupon to retrieve.
* @param array|string $id The ID of the coupon to retrieve.
* @param array|string|null $opts
*
* @return Coupon
Expand Down
2 changes: 1 addition & 1 deletion lib/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class Customer extends ApiResource
{
/**
* @param string $id The ID of the customer to retrieve.
* @param array|string $id The ID of the customer to retrieve.
* @param array|string|null $opts
*
* @return Customer
Expand Down
2 changes: 1 addition & 1 deletion lib/Dispute.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class Dispute extends ApiResource
{
/**
* @param string $id The ID of the dispute to retrieve.
* @param array|string $id The ID of the dispute to retrieve.
* @param array|string|null $options
*
* @return Dispute
Expand Down
2 changes: 1 addition & 1 deletion lib/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class Event extends ApiResource
{
/**
* @param string $id The ID of the event to retrieve.
* @param array|string $id The ID of the event to retrieve.
* @param array|string|null $opts
*
* @return Event
Expand Down
2 changes: 1 addition & 1 deletion lib/FileUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function className()
}

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

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

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

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

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

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

0 comments on commit 343b3da

Please sign in to comment.