/** * Loads a list of entities by a list of field conditions. * * @param array $conditions * @param array|null $orderBy * @param int|null $limit * @param int|null $offset * * @return array */ public function loadAll(array $conditions = [], array $orderBy = [], $limit = null, $offset = null) { $uri = $this->getUri($conditions, $orderBy, $limit, $offset); $route = $this->getRoute($conditions, $orderBy, $limit, $offset); $response = $this->connection->request('GET', $uri); return $this->serializer->deserialize($response->getBody(), $route->returnsCollection(), $route->getEnvelopes()); }