StreamDocument.php in Search API Solr 4.x
Same filename and directory in other branches
Namespace
Drupal\search_api_solr\Solarium\ResultFile
src/Solarium/Result/StreamDocument.phpView source
<?php
namespace Drupal\search_api_solr\Solarium\Result;
use Solarium\Core\Query\AbstractDocument;
use Solarium\Core\Query\DocumentInterface;
/**
* Stream result Solr document.
*/
class StreamDocument extends AbstractDocument {
/**
* Constructor.
*
* @param array $fields
* The array of fields.
*/
public function __construct(array $fields) {
$this->fields = $fields;
}
/**
* Sets a field value.
*
* @param string $name
* The field name.
* @param mixed $value
* The field value.
*/
public function __set($name, $value) : void {
$this->fields[$name] = $value;
}
}
Classes
Name![]() |
Description |
---|---|
StreamDocument | Stream result Solr document. |