1 | <?php |
||
7 | final class FacadeDocListV2Query |
||
8 | { |
||
9 | public const DOCUMENT_STATUS_IN_PROGRESS = 'IN_PROGRESS'; |
||
10 | public const DOCUMENT_STATUS_CHECKED_OK = 'CHECKED_OK'; |
||
11 | public const DOCUMENT_STATUS_CHECKED_NOT_OK = 'CHECKED_NOT_OK'; |
||
12 | public const DOCUMENT_STATUS_PROCESSING_ERROR = 'PROCESSING_ERROR'; |
||
13 | public const DOCUMENT_STATUS_UNDEFINED = 'UNDEFINED'; |
||
14 | |||
15 | /** @deprecated use DocumentLkType constants instead */ |
||
16 | public const DOCUMENT_TYPE_LP_INTRODUCE_GOODS = 'LP_INTRODUCE_GOODS'; |
||
17 | /** @deprecated use DocumentLkType constants instead */ |
||
18 | public const DOCUMENT_TYPE_LP_INTRODUCE_GOODS_CSV = 'LP_INTRODUCE_GOODS_CSV'; |
||
19 | /** @deprecated use DocumentLkType constants instead */ |
||
20 | public const DOCUMENT_TYPE_LP_INTRODUCE_GOODS_XML = 'LP_INTRODUCE_GOODS_XML'; |
||
21 | /** @deprecated use DocumentLkType constants instead */ |
||
22 | public const DOCUMENT_TYPE_LP_SHIP_GOODS = 'LP_SHIP_GOODS'; |
||
23 | /** @deprecated use DocumentLkType constants instead */ |
||
24 | public const DOCUMENT_TYPE_LP_SHIP_GOODS_XML = 'LP_SHIP_GOODS_XML'; |
||
25 | /** @deprecated use DocumentLkType constants instead */ |
||
26 | public const DOCUMENT_TYPE_LP_ACCEPT_GOODS = 'LP_ACCEPT_GOODS'; |
||
27 | /** @deprecated use DocumentLkType constants instead */ |
||
28 | public const DOCUMENT_TYPE_LP_ACCEPT_GOODS_XML = 'LP_ACCEPT_GOODS_XML'; |
||
29 | |||
30 | public const ORDER_ASC = 'ASC'; |
||
31 | public const ORDER_DESC = 'DESC'; |
||
32 | |||
33 | public const ORDER_COLUMN_DOC_DATE = 'docDate'; |
||
34 | public const ORDER_COLUMN_RECEIVED_AT = 'receivedAt'; |
||
35 | |||
36 | public const PAGE_DIR_NEXT = 'NEXT'; |
||
37 | public const PAGE_DIR_PREV = 'PREV'; |
||
38 | |||
39 | /** |
||
40 | * @var \DateTimeInterface | null |
||
41 | */ |
||
42 | private $dateFrom; |
||
43 | /** |
||
44 | * @var \DateTimeInterface | null |
||
45 | */ |
||
46 | private $dateTo; |
||
47 | /** |
||
48 | * @var string|null |
||
49 | */ |
||
50 | private $number; |
||
51 | /** |
||
52 | * @var string|null |
||
53 | */ |
||
54 | private $documentStatus; |
||
55 | /** |
||
56 | * @var string|null |
||
57 | */ |
||
58 | private $documentType; |
||
59 | /** |
||
60 | * @var bool | null |
||
61 | */ |
||
62 | private $inputFormat; |
||
63 | /** |
||
64 | * @var string|null |
||
65 | */ |
||
66 | private $participantInn; |
||
67 | /** |
||
68 | * @var string|null |
||
69 | */ |
||
70 | private $order; |
||
71 | /** |
||
72 | * @var string|null |
||
73 | */ |
||
74 | private $did; |
||
75 | /** |
||
76 | * @var string|null |
||
77 | */ |
||
78 | private $orderedColumnValue; |
||
79 | /** |
||
80 | * @var string|null |
||
81 | */ |
||
82 | private $orderColumn; |
||
83 | /** |
||
84 | * @var string|null |
||
85 | */ |
||
86 | private $pageDir; |
||
87 | /** |
||
88 | * @var int |
||
89 | */ |
||
90 | private $limit = 10; |
||
91 | |||
92 | public function getDateFrom(): ?\DateTimeInterface |
||
96 | |||
97 | public function setDateFrom(?\DateTimeInterface $dateFrom): void |
||
101 | |||
102 | public function getDateTo(): ?\DateTimeInterface |
||
106 | |||
107 | public function setDateTo(?\DateTimeInterface $dateTo): void |
||
111 | |||
112 | public function getNumber(): ?string |
||
116 | |||
117 | public function setNumber(?string $number): void |
||
121 | |||
122 | public function getDocumentStatus(): ?string |
||
126 | |||
127 | public function setDocumentStatus(?string $documentStatus): void |
||
131 | |||
132 | public function getDocumentType(): ?string |
||
136 | |||
137 | public function setDocumentType(?string $documentType): void |
||
141 | |||
142 | public function getInputFormat(): ?bool |
||
146 | |||
147 | public function setInputFormat(?bool $inputFormat): void |
||
151 | |||
152 | public function getParticipantInn(): ?string |
||
156 | |||
157 | public function setParticipantInn(?string $participantInn): void |
||
161 | |||
162 | public function getOrder(): ?string |
||
166 | |||
167 | public function setOrder(?string $order): void |
||
171 | |||
172 | public function getDid(): ?string |
||
176 | |||
177 | public function setDid(?string $did): void |
||
181 | |||
182 | public function getOrderedColumnValue(): ?string |
||
186 | |||
187 | public function setOrderedColumnValue(?string $orderedColumnValue): void |
||
191 | |||
192 | public function getOrderColumn(): ?string |
||
196 | |||
197 | public function setOrderColumn(?string $orderColumn): void |
||
201 | |||
202 | public function getPageDir(): ?string |
||
206 | |||
207 | public function setPageDir(?string $pageDir): void |
||
211 | |||
212 | public function getLimit(): int |
||
216 | |||
217 | public function setLimit(int $limit): void |
||
221 | |||
222 | public function toQueryArray(): array |
||
248 | |||
249 | private static function appendIfNotNull(array &$query, string $name, $value, callable $formatter = null): void |
||
255 | } |
||
256 |