private function buildContentfulEntries(ResourceArray $entries, Client $client): array
    {
        $contentfulEntries = [];

        foreach ($entries as $remoteEntry) {
            $id = $remoteEntry->getSpace()->getId() . '|' . $remoteEntry->getId();
            $contentfulEntry = $this->findContentfulEntry($id);
            if (!$contentfulEntry instanceof ContentfulEntry) {
                $contentfulEntry = $this->buildContentfulEntry($remoteEntry, $id);
            } else {
                $contentfulEntry->reviveRemoteEntry($client);
            }
            $contentfulEntries[] = $contentfulEntry;
        }

        return $contentfulEntries;
    }
private function buildContentfulEntries(ResourceArray $entries, Client $client): array
    {
        $contentfulEntries = [];

        foreach ($entries as $remoteEntry) {
            $id = $remoteEntry->getSpace()->getId() . '|' . $remoteEntry->getId();
            $contentfulEntry = $this->findContentfulEntry($id);
            if (!$contentfulEntry instanceof ContentfulEntry) {
                $contentfulEntry = $this->buildContentfulEntry($remoteEntry, $id);
            } else {
                $contentfulEntry->reviveRemoteEntry($client);
            }
            $contentfulEntries[] = $contentfulEntry;
        }

        return $contentfulEntries;
    }
private function buildContentfulEntries ( ResourceArray $ entries , Client $ client ) : array { $ contentfulEntries = [ ] ; foreach ( $ entries as $ remoteEntry ) { $ id = $ remoteEntry -> getSpace ( ) -> getId ( ) . '|' . $ remoteEntry -> getId ( ) ; $ contentfulEntry = $ this -> findContentfulEntry ( $ id ) ; if ( ! $ contentfulEntry instanceof ContentfulEntry ) { $ contentfulEntry = $ this -> buildContentfulEntry ( $ remoteEntry , $ id ) ; } else { $ contentfulEntry -> reviveRemoteEntry ( $ client ) ; } $ contentfulEntries [ ] = $ contentfulEntry ; } return $ contentfulEntries ; }
Builds the Contentful entries from provided remote entries.

@return \Netgen\Layouts\Contentful\Entity\ContentfulEntry[]
Builds the Contentful entries from provided remote entries .