2014-09-23 20:45:59 +02:00
|
|
|
<?php
|
|
|
|
namespace Szurubooru\SearchServices;
|
2014-10-08 14:47:47 +02:00
|
|
|
use Szurubooru\SearchServices\Filters\IFilter;
|
2014-09-23 20:45:59 +02:00
|
|
|
|
2014-09-26 19:14:34 +02:00
|
|
|
class Result
|
2014-09-23 20:45:59 +02:00
|
|
|
{
|
|
|
|
public $pageNumber;
|
|
|
|
public $pageSize;
|
|
|
|
public $searchFilter;
|
|
|
|
public $entities;
|
|
|
|
public $totalRecords;
|
|
|
|
|
2014-10-08 14:47:47 +02:00
|
|
|
public function setSearchFilter(IFilter $searchFilter = null)
|
2014-09-23 20:45:59 +02:00
|
|
|
{
|
|
|
|
$this->searchFilter = $searchFilter;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSearchFilter()
|
|
|
|
{
|
|
|
|
return $this->searchFilter;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setPageNumber($pageNumber)
|
|
|
|
{
|
|
|
|
$this->pageNumber = $pageNumber;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPageNumber()
|
|
|
|
{
|
|
|
|
return $this->pageNumber;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setPageSize($pageSize)
|
|
|
|
{
|
|
|
|
$this->pageSize = $pageSize;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPageSize()
|
|
|
|
{
|
|
|
|
return $this->pageSize;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setEntities(array $entities)
|
|
|
|
{
|
|
|
|
$this->entities = $entities;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getEntities()
|
|
|
|
{
|
|
|
|
return $this->entities;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setTotalRecords($totalRecords)
|
|
|
|
{
|
|
|
|
$this->totalRecords = $totalRecords;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTotalRecords()
|
|
|
|
{
|
|
|
|
return $this->totalRecords;
|
|
|
|
}
|
|
|
|
}
|