diff --git a/FACTFinder/Adapter/Search.php b/FACTFinder/Adapter/Search.php index dde483b..523e369 100755 --- a/FACTFinder/Adapter/Search.php +++ b/FACTFinder/Adapter/Search.php @@ -135,13 +135,11 @@ private function createResult() //init default values $records = array(); $resultCount = 0; - $refKey = null; $jsonData = $this->getResponseContent(); if ($this->isValidResponse($jsonData)) { $searchResultData = $jsonData['searchResult']; - $refKey = $searchResultData['refKey']; if (!empty($searchResultData['records'])) { @@ -168,7 +166,6 @@ private function createResult() return FF::getInstance( 'Data\Result', $records, - $refKey, $resultCount ); } diff --git a/FACTFinder/Data/Result.php b/FACTFinder/Data/Result.php index 99d502e..b90086c 100644 --- a/FACTFinder/Data/Result.php +++ b/FACTFinder/Data/Result.php @@ -6,10 +6,6 @@ */ class Result extends \ArrayIterator { - /** - * @var string - */ - private $refKey; /** * @var int @@ -18,7 +14,6 @@ class Result extends \ArrayIterator /** * @param Record[] $records The Record objects to add to the result. - * @param string $refKey * @param int $foundRecordsCount Total number of records found for the * search these records are from. This can be greater than * count($records), because $records may just be the records from a @@ -27,11 +22,9 @@ class Result extends \ArrayIterator */ public function __construct( array $records, - $refKey = '', $foundRecordsCount = 0 ) { parent::__construct($records); - $this->refKey = (string)$refKey; $this->foundRecordsCount = (int)$foundRecordsCount; } @@ -43,12 +36,4 @@ public function getFoundRecordsCount() return $this->foundRecordsCount; } - /** - * @return string - */ - public function getRefKey() - { - return $this->refKey; - } - }