632bac8661
This version ditches backwards compatibility with PHP earlier than 5.6.
62 lines
1,004 B
PHP
62 lines
1,004 B
PHP
<?php
|
|
namespace Szurubooru\SearchServices;
|
|
use Szurubooru\SearchServices\Filters\IFilter;
|
|
|
|
class Result
|
|
{
|
|
public $pageNumber;
|
|
public $pageSize;
|
|
public $searchFilter;
|
|
public $entities;
|
|
public $totalRecords;
|
|
|
|
public function setSearchFilter(IFilter $searchFilter = null)
|
|
{
|
|
$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;
|
|
}
|
|
}
|