Overview

Namespaces

  • PHP
  • vierbergenlars
    • Forage
      • ODM
        • HydrationSettings
      • QueryParser
      • SearchIndex
      • SearchQuery
      • SearchResult
      • Transport

Classes

  • DocumentMapper
  • SearchHit
  • SearchIndex
  • SearchQuery
  • SearchResult

Interfaces

  • HydrationSettingsInterface
  • Indexable
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace vierbergenlars\Forage\ODM;
 4: 
 5: use vierbergenlars\Forage\SearchResult\Hit;
 6: use vierbergenlars\Forage\ODM\HydrationSettingsInterface;
 7: 
 8: /**
 9:  * A hydrateable search hit
10:  */
11: class SearchHit extends Hit
12: {
13:     /**
14:      * Hydrates the document into an object
15:      * @internal
16:      * @param \vierbergenlars\Forage\ODM\HydrationSettingsInterface $hydrationSettings
17:      */
18:     public function hydrate(HydrationSettingsInterface $hydrationSettings)
19:     {
20:         $this->document = $hydrationSettings->getObject($this);
21:     }
22: }
23: 
Forage-PHP-Client API documentation generated by ApiGen 2.8.0