Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
vendor
/
stripe
/
stripe-php
/
lib
/
ApiOperations
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/vendor/stripe/stripe-php/lib/ApiOperations/All.php
<?php namespace Stripe\ApiOperations; /** * Trait for listable resources. Adds a `all()` static method to the class. * * This trait should only be applied to classes that derive from StripeObject. */ trait All { /** * @param array|null $params * @param array|string|null $opts * * @return \Stripe\Collection of ApiResources */ public static function all($params = null, $opts = null) { self::_validateParams($params); $url = static::classUrl(); list($response, $opts) = static::_staticRequest('get', $url, $params, $opts); $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts); if (!is_a($obj, 'Stripe\\Collection')) { $class = get_class($obj); $message = "Expected type \"Stripe\\Collection\", got \"$class\" instead"; throw new \Stripe\Error\Api($message); } $obj->setLastResponse($response); $obj->setRequestParams($params); return $obj; } }