src/Model/ApiResourceBase.php
public static function wrapCollection(array $data, $baseUrl, ClientInterface $client)
    {
        $resources = [];
        foreach ($data as $item) {
            $resources[] = new static($item, $baseUrl, $client);
        }

        return $resources;
    }
public static function wrapCollection(array $data, $baseUrl, ClientInterface $client)
    {
        $resources = [];
        foreach ($data as $item) {
            $resources[] = new static($item, $baseUrl, $client);
        }

        return $resources;
    }
public static function wrapCollection ( array $ data , $ baseUrl , ClientInterface $ client ) { $ resources = [ ] ; foreach ( $ data as $ item ) { $ resources [ ] = new static ( $ item , $ baseUrl , $ client ) ; } return $ resources ; }
Create an array of resource instances from a collection's JSON data.

@param array           $data    The deserialized JSON from the
collection (i.e. a list of resources,
each of which is an array of data).
@param string          $baseUrl The URL to the collection.
@param ClientInterface $client  A suitably configured Guzzle client.

@return static[]
Create an array of resource instances from a collection s JSON data .