Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 4
CRAP
0.00% covered (danger)
0.00%
0 / 5
EmptySearchResultSet
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 4
20
0.00% covered (danger)
0.00%
0 / 5
 __construct
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 transformOneResult
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 getElasticaResultSet
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 searchContainedSyntax
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
<?php
namespace CirrusSearch\Search;
use Exception;
class EmptySearchResultSet extends BaseCirrusSearchResultSet {
    /** @var bool */
    private $searchContainedSyntax;
    /**
     * @param bool $searchContainedSyntax
     */
    public function __construct( $searchContainedSyntax ) {
        $this->searchContainedSyntax = $searchContainedSyntax;
    }
    /**
     * @inheritDoc
     */
    protected function transformOneResult( \Elastica\Result $result ) {
        // @phan-suppress-previous-line PhanPluginNeverReturnMethod
        throw new Exception( "An empty ResultSet has nothing to transform" );
    }
    /**
     * @inheritDoc
     */
    public function getElasticaResultSet() {
        return null;
    }
    /**
     * @inheritDoc
     */
    public function searchContainedSyntax() {
        return $this->searchContainedSyntax;
    }
}