3 namespace Friendica\Object\Search;
5 use Friendica\Model\Search;
8 * A list of search results with metadata
10 * @see Search for details
15 * Page of the result list
20 * Total count of results
39 public function getPage()
47 public function getTotal()
55 public function getItemsPage()
57 return $this->itemsPage;
63 public function getResults()
65 return $this->results;
71 * @param int $itemsPage
72 * @param IResult[] $results
74 public function __construct($page = 0, $total = 0, $itemsPage = 0, array $results = [])
77 $this->total = $total;
78 $this->itemsPage = $itemsPage;
80 $this->results = $results;
84 * Adds a result to the result list
86 * @param IResult $result
88 public function addResult(IResult $result)
90 $this->results[] = $result;