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\SearchResult as Result;
 6: use vierbergenlars\Forage\ODM\HydrationSettingsInterface;
 7: 
 8: /**
 9:  * A hydrateable search result
10:  */
11: class SearchResult extends Result
12: {
13:     protected $hitClass = '\vierbergenlars\Forage\ODM\SearchHit';
14: 
15:     /**
16:      * Hydrates all results into objects
17:      * @internal
18:      * @param \vierbergenlars\Forage\ODM\HydrationSettingsInterface $hydrationSettings
19:      */
20:     public function hydrate(HydrationSettingsInterface $hydrationSettings)
21:     {
22:         foreach($this as $hit)
23:             $hit->hydrate($hydrationSettings);
24:     }
25: }
26: 
Forage-PHP-Client API documentation generated by ApiGen 2.8.0