Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
filter.php
1
<?php
2
3
namespace
Bitrix\Sender\Integration\Yandex\Toloka\DTO
;
4
5
class
Filter
implements
TolokaTransferObject
6
{
10
private
$operator =
'IN'
;
11
15
private
$category =
'computed'
;
16
20
private
$key;
21
25
private
$value;
26
30
public
function
getOperator
(): string
31
{
32
return
$this->operator;
33
}
34
40
public
function
setOperator
(
string
$operator):
Filter
41
{
42
$this->
operator
= $operator;
43
44
return
$this;
45
}
46
50
public
function
getCategory
(): string
51
{
52
return
$this->category;
53
}
54
60
public
function
setCategory
(
string
$category):
Filter
61
{
62
$this->category = $category;
63
64
return
$this;
65
}
66
70
public
function
getKey
(): string
71
{
72
return
$this->key;
73
}
74
80
public
function
setKey
(
string
$key):
Filter
81
{
82
$this->key = $key;
83
84
return
$this;
85
}
86
90
public
function
getValue
(): string
91
{
92
return
$this->value;
93
}
94
100
public
function
setValue
(
string
$value):
Filter
101
{
102
$this->value = $value;
103
104
return
$this;
105
}
106
107
public
function
ableFilters
()
108
{
109
return
[
110
'region_by_ip'
,
111
'region_by_phone'
112
];
113
}
114
115
public
function
toArray
(): array
116
{
117
return
[
118
'operator'
=> $this->operator,
119
'category'
=> $this->category,
120
'key'
=> $this->key,
121
'value'
=> $this->value
122
];
123
}
124
}
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Filter
Definition
filter.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Filter\setOperator
setOperator(string $operator)
Definition
filter.php:40
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Filter\setKey
setKey(string $key)
Definition
filter.php:80
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Filter\toArray
toArray()
Definition
filter.php:115
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Filter\ableFilters
ableFilters()
Definition
filter.php:107
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Filter\getValue
getValue()
Definition
filter.php:90
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Filter\getKey
getKey()
Definition
filter.php:70
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Filter\getCategory
getCategory()
Definition
filter.php:50
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Filter\getOperator
getOperator()
Definition
filter.php:30
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Filter\setValue
setValue(string $value)
Definition
filter.php:100
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Filter\setCategory
setCategory(string $category)
Definition
filter.php:60
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject
Definition
tolokatransferobject.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO
modules
sender
lib
integration
yandex
toloka
dto
filter.php
Создано системой
1.10.0