3 namespace Friendica\Object\Search;
5 use Friendica\Model\Search;
8 * A list of search results with details
10 * @see Search for details
15 * Page of the result list
20 * Total count of results
38 public function getPage()
46 public function getTotal()
54 public function getItemsPage()
56 return $this->itemsPage;
62 public function getResults()
64 return $this->results;
70 * @param int $itemsPage
71 * @param Result[] $results
73 public function __construct($page = 0, $total = 0, $itemsPage = 0, array $results = [])
76 $this->total = $total;
77 $this->itemsPage = $itemsPage;
79 $this->results = $results;
83 * Adds a result to the result list
85 * @param Result $result
87 public function addResult(Result $result)
89 $this->results[] = $result;