-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathQueryDefinition.php
60 lines (52 loc) · 1.3 KB
/
QueryDefinition.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
declare(strict_types=1);
namespace Netgen\Bundle\EzPlatformSiteApiBundle\QueryType;
use eZ\Publish\API\Repository\Values\ValueObject;
/**
* QueryDefinition defines a search query through the QueryType configuration.
*
* @see \eZ\Publish\Core\QueryType\QueryType
*
* @property string $name QueryType name.
* @property array $parameters An array of configured QueryType options.
* @property bool $useFilter Whether to use FilterService or Find Service.
* @property int $maxPerPage Maximum results per page for Pagerfanta.
* @property int $page Current page for Pagerfanta.
*
* @internal do not depend on this class, it can be changed without warning
*/
final class QueryDefinition extends ValueObject
{
/**
* QueryType name.
*
* @see \eZ\Publish\Core\QueryType\QueryType::getName()
*
* @var string
*/
protected $name;
/**
* An array of configured QueryType options.
*
* @var array
*/
protected $parameters;
/**
* Whether to use FilterService or Find Service.
*
* @var bool
*/
protected $useFilter;
/**
* Maximum results per page for Pagerfanta.
*
* @var int
*/
protected $maxPerPage;
/**
* Current page for Pagerfanta.
*
* @var int
*/
protected $page;
}