2012-02-23 23:50:46 +01:00
|
|
|
<?php
|
|
|
|
|
2013-03-27 18:44:06 +01:00
|
|
|
namespace FOS\ElasticaBundle;
|
2012-02-23 23:50:46 +01:00
|
|
|
|
2013-04-22 13:20:10 +02:00
|
|
|
use Elastica\Result;
|
2012-02-23 23:50:46 +01:00
|
|
|
|
|
|
|
class HybridResult
|
|
|
|
{
|
|
|
|
protected $result;
|
|
|
|
protected $transformed;
|
|
|
|
|
2013-04-22 13:20:10 +02:00
|
|
|
public function __construct(Result $result, $transformed = null)
|
2012-02-23 23:50:46 +01:00
|
|
|
{
|
|
|
|
$this->result = $result;
|
|
|
|
$this->transformed = $transformed;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTransformed()
|
|
|
|
{
|
|
|
|
return $this->transformed;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getResult()
|
|
|
|
{
|
|
|
|
return $this->result;
|
|
|
|
}
|
|
|
|
}
|