ResourceArray
class ResourceArray implements ResourceInterface, Countable, ArrayAccess, IteratorAggregate
A ResourceArray holds the response of an API request if more than one resource has been requested.
In addition to the retrieved items themselves it also provides some access to metadata.
Methods
ResourceArray constructor.
Returns the total amount of resources matching the filter.
The limit used when retrieving this ResourceArray.
The number of skipped resources when retrieving this ResourceArray.
Get the returned values as a PHP array.
Returns the resource's system properties, defined in the object "sys" in Contentful's responses.
Shortcut for retrieving the resource ID from the system properties object.
Shortcut for retrieving the resource type from the system properties object.
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
Details
        at         line 53
                            
    __construct(array $items, int $total, int $limit, int $skip)
        
    
    ResourceArray constructor.
        at         line 66
                            int
    getTotal()
        
    
    Returns the total amount of resources matching the filter.
        at         line 76
                            int
    getLimit()
        
    
    The limit used when retrieving this ResourceArray.
        at         line 86
                            int
    getSkip()
        
    
    The number of skipped resources when retrieving this ResourceArray.
        at         line 96
                            ResourceInterface[]
    getItems()
        
    
    Get the returned values as a PHP array.
        at         line 104
                            SystemPropertiesInterface
    getSystemProperties()
        
    
    Returns the resource's system properties, defined in the object "sys" in Contentful's responses.
        at         line 112
                            Link
    asLink()
        
    
    Creates a Link representation of the current resource.
        at         line 120
                            string
    getId()
        
    
    Shortcut for retrieving the resource ID from the system properties object.
        at         line 128
                            string
    getType()
        
    
    Shortcut for retrieving the resource type from the system properties object.
        at         line 136
                            
    jsonSerialize()
        
    
    {@inheritdoc}
        at         line 152
                            
    count()
        
    
    {@inheritdoc}
        at         line 160
                            
    getIterator()
        
    
    {@inheritdoc}
        at         line 168
                            
    offsetExists($offset)
        
    
    {@inheritdoc}
        at         line 176
                            
    offsetGet($offset)
        
    
    {@inheritdoc}
        at         line 184
                            
    offsetSet($offset, $value)
        
    
    {@inheritdoc}
        at         line 195
                            
    offsetUnset($offset)
        
    
    {@inheritdoc}