acquia / acquia-sdk-php

The Acquia SDK for PHP allows developers to build applications on top of Acquia services.
MIT License
25 stars 20 forks source link

Implement a system that detects which property contains the collection #46

Closed cpliakas closed 10 years ago

cpliakas commented 10 years ago

The Acquia\Rest\Collection class allows developers to set which property the collection is contained in. There are some API's that will use a different property for the collection but iterate over the same set of elements. In order to facilitate not having to create different classes, the SDK should have a system that allows you to define a list of possible elements that contain the collection.