protected function responseArrayToArrayOfEntities(array $responseArray, string $keyGetter = 'id'): array
    {
        $entities = [];

        foreach ($responseArray as $item) {
            /** @var \Apigee\Edge\Entity\EntityInterface $tmp */
            $tmp = $this->getEntitySerializer()->denormalize($item, $this->getEntityClass());
            $entities[$tmp->{$keyGetter}()] = $tmp;
        }

        return $entities;
    }
protected function responseArrayToArrayOfEntities(array $responseArray, string $keyGetter = 'id'): array
    {
        $entities = [];

        foreach ($responseArray as $item) {
            /** @var \Apigee\Edge\Entity\EntityInterface $tmp */
            $tmp = $this->getEntitySerializer()->denormalize($item, $this->getEntityClass());
            $entities[$tmp->{$keyGetter}()] = $tmp;
        }

        return $entities;
    }
protected function responseArrayToArrayOfEntities ( array $ responseArray , string $ keyGetter = 'id' ) : array { $ entities = [ ] ; foreach ( $ responseArray as $ item ) { /** @var \Apigee\Edge\Entity\EntityInterface $tmp */ $ tmp = $ this -> getEntitySerializer ( ) -> denormalize ( $ item , $ this -> getEntityClass ( ) ) ; $ entities [ $ tmp -> { $ keyGetter } ( ) ] = $ tmp ; } return $ entities ; }
Parse an API response array to array of entity objects.

@param array $responseArray
API response as an array without the entity type key, ex.: developer,
apiproduct, etc.
@param string $keyGetter
Getter method on the entity that should be used as array key. Default
is id().

@return \Apigee\Edge\Entity\EntityInterface[]
Array of entity objects.
Parse an API response array to array of entity objects .