PHP 8.2.31
Preview: Retrieve.php Size: 671 B
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/tourmaster/include/stripe/lib/ApiOperations/Retrieve.php

<?php

namespace Stripe\ApiOperations;

/**
 * Trait for retrievable resources. Adds a `retrieve()` static method to the
 * class.
 *
 * This trait should only be applied to classes that derive from StripeObject.
 */
trait Retrieve
{
    /**
     * @param array|string $id The ID of the API resource to retrieve,
     *     or an options array containing an `id` key.
     * @param array|string|null $opts
     *
     * @return static
     */
    public static function retrieve($id, $opts = null)
    {
        $opts = \Stripe\Util\RequestOptions::parse($opts);
        $instance = new static($id, $opts);
        $instance->refresh();
        return $instance;
    }
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
1019 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
757 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
655 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
3.51 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
2.20 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
671 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
1.26 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).