protected function extractContentInfoFromHit($hit)
    {
        $contentInfo = new ContentInfo(
            [
                'id' => (int)$hit->content_id_id,
                'name' => $hit->content_name_s,
                'contentTypeId' => (int)$hit->content_type_id_id,
                'sectionId' => (int)$hit->content_section_id_id,
                'currentVersionNo' => $hit->content_version_no_i,
                'isPublished' => true,
                'ownerId' => (int)$hit->content_owner_user_id_id,
                'modificationDate' => strtotime($hit->content_modification_date_dt),
                'publicationDate' => strtotime($hit->content_publication_date_dt),
                'alwaysAvailable' => $hit->content_always_available_b,
                'remoteId' => $hit->content_remote_id_id,
                'mainLanguageCode' => $hit->content_main_language_code_s,
            ]
        );

        if (isset($hit->main_location_id)) {
            $contentInfo->mainLocationId = (int)$hit->main_location_id;
        }

        return $contentInfo;
    }
protected function extractContentInfoFromHit($hit)
    {
        $contentInfo = new ContentInfo(
            [
                'id' => (int)$hit->content_id_id,
                'name' => $hit->content_name_s,
                'contentTypeId' => (int)$hit->content_type_id_id,
                'sectionId' => (int)$hit->content_section_id_id,
                'currentVersionNo' => $hit->content_version_no_i,
                'isPublished' => true,
                'ownerId' => (int)$hit->content_owner_user_id_id,
                'modificationDate' => strtotime($hit->content_modification_date_dt),
                'publicationDate' => strtotime($hit->content_publication_date_dt),
                'alwaysAvailable' => $hit->content_always_available_b,
                'remoteId' => $hit->content_remote_id_id,
                'mainLanguageCode' => $hit->content_main_language_code_s,
            ]
        );

        if (isset($hit->main_location_id)) {
            $contentInfo->mainLocationId = (int)$hit->main_location_id;
        }

        return $contentInfo;
    }
protected function extractContentInfoFromHit ( $ hit ) { $ contentInfo = new ContentInfo ( [ 'id' => ( int ) $ hit -> content_id_id , 'name' => $ hit -> content_name_s , 'contentTypeId' => ( int ) $ hit -> content_type_id_id , 'sectionId' => ( int ) $ hit -> content_section_id_id , 'currentVersionNo' => $ hit -> content_version_no_i , 'isPublished' => true , 'ownerId' => ( int ) $ hit -> content_owner_user_id_id , 'modificationDate' => strtotime ( $ hit -> content_modification_date_dt ) , 'publicationDate' => strtotime ( $ hit -> content_publication_date_dt ) , 'alwaysAvailable' => $ hit -> content_always_available_b , 'remoteId' => $ hit -> content_remote_id_id , 'mainLanguageCode' => $ hit -> content_main_language_code_s , ] ) ; if ( isset ( $ hit -> main_location_id ) ) { $ contentInfo -> mainLocationId = ( int ) $ hit -> main_location_id ; } return $ contentInfo ; }
@param mixed $hit

@return \eZ\Publish\SPI\Persistence\Content\ContentInfo
@param mixed $hit