src/Jira/Request/JiraRequest.php
public function returnObjectArray(array $data, $classname, $key = null)
    {
        $objects = array();
        foreach ($data as $object) {
          if (null === $key) {
              $objects[] = new $classname($object);
          } else {
              $objects[$object->$key] = new $classname($object);
          }
        }
        return $objects;
    }
public function returnObjectArray(array $data, $classname, $key = null)
    {
        $objects = array();
        foreach ($data as $object) {
          if (null === $key) {
              $objects[] = new $classname($object);
          } else {
              $objects[$object->$key] = new $classname($object);
          }
        }
        return $objects;
    }
public function returnObjectArray ( array $ data , $ classname , $ key = null ) { $ objects = array ( ) ; foreach ( $ data as $ object ) { if ( null === $ key ) { $ objects [ ] = new $ classname ( $ object ) ; } else { $ objects [ $ object -> $ key ] = new $ classname ( $ object ) ; } } return $ objects ; }
Helper function that returns an array of objects.

@param array $data
The raw data returned by JiraRequest::call().
@param string $classname
The name of the class used to create the objects.
@param string|null $key
Optionally specify a property whose value should be used as the array
key.

@return array
Returns an array of $classname objects.
Helper function that returns an array of objects .