/**
  * @param array $arrRequiredFields
  * @return array
  */
 public function toArray($arrRequiredFields = [])
 {
     $array = [];
     $array['search_criteria'] = $this->searchResult->getSearchCriteria();
     $array['total_count'] = $this->searchResult->getTotalCount();
     foreach ($this->searchResult->getItems() as $item) {
         $array['items'][] = $item->toArray($arrRequiredFields);
     }
     return $array;
 }
Exemplo n.º 2
0
 public function testGetSearchCriteria()
 {
     $this->assertEquals($this->criteria, $this->searchResult->getSearchCriteria());
 }