@@ -46,94 +46,94 @@ |
||
| 46 | 46 | interface ISearchRequestSimpleQuery { |
| 47 | 47 | |
| 48 | 48 | |
| 49 | - const COMPARE_TYPE_TEXT = 1; |
|
| 50 | - const COMPARE_TYPE_KEYWORD = 2; |
|
| 51 | - const COMPARE_TYPE_INT_EQ = 3; |
|
| 52 | - const COMPARE_TYPE_INT_GTE = 4; |
|
| 53 | - const COMPARE_TYPE_INT_GT = 5; |
|
| 54 | - const COMPARE_TYPE_INT_LTE = 6; |
|
| 55 | - const COMPARE_TYPE_INT_LT = 7; |
|
| 56 | - const COMPARE_TYPE_BOOL = 8; |
|
| 57 | - const COMPARE_TYPE_ARRAY = 9; |
|
| 58 | - const COMPARE_TYPE_REGEX = 10; |
|
| 59 | - const COMPARE_TYPE_WILDCARD = 11; |
|
| 60 | - |
|
| 61 | - |
|
| 62 | - /** |
|
| 63 | - * Get the compare type of the query |
|
| 64 | - * |
|
| 65 | - * @return int |
|
| 66 | - * @since 17.0.0 |
|
| 67 | - */ |
|
| 68 | - public function getType(): int; |
|
| 69 | - |
|
| 70 | - |
|
| 71 | - /** |
|
| 72 | - * Get the field to apply query |
|
| 73 | - * |
|
| 74 | - * @return string |
|
| 75 | - * @since 17.0.0 |
|
| 76 | - */ |
|
| 77 | - public function getField(): string; |
|
| 78 | - |
|
| 79 | - /** |
|
| 80 | - * Set the field to apply query |
|
| 81 | - * |
|
| 82 | - * @param string $field |
|
| 83 | - * |
|
| 84 | - * @return ISearchRequestSimpleQuery |
|
| 85 | - * @since 17.0.0 |
|
| 86 | - */ |
|
| 87 | - public function setField(string $field): ISearchRequestSimpleQuery; |
|
| 88 | - |
|
| 89 | - |
|
| 90 | - /** |
|
| 91 | - * Get the all values to compare |
|
| 92 | - * |
|
| 93 | - * @return array |
|
| 94 | - * @since 17.0.0 |
|
| 95 | - */ |
|
| 96 | - public function getValues(): array; |
|
| 97 | - |
|
| 98 | - /** |
|
| 99 | - * Add value to compare (string) |
|
| 100 | - * |
|
| 101 | - * @param string $value |
|
| 102 | - * |
|
| 103 | - * @return ISearchRequestSimpleQuery |
|
| 104 | - * @since 17.0.0 |
|
| 105 | - */ |
|
| 106 | - public function addValue(string $value): ISearchRequestSimpleQuery; |
|
| 107 | - |
|
| 108 | - /** |
|
| 109 | - * Add value to compare (int) |
|
| 110 | - * |
|
| 111 | - * @param int $value |
|
| 112 | - * |
|
| 113 | - * @return ISearchRequestSimpleQuery |
|
| 114 | - * @since 17.0.0 |
|
| 115 | - */ |
|
| 116 | - public function addValueInt(int $value): ISearchRequestSimpleQuery; |
|
| 117 | - |
|
| 118 | - /** |
|
| 119 | - * Add value to compare (array) |
|
| 120 | - * |
|
| 121 | - * @param array $value |
|
| 122 | - * |
|
| 123 | - * @return ISearchRequestSimpleQuery |
|
| 124 | - * @since 17.0.0 |
|
| 125 | - */ |
|
| 126 | - public function addValueArray(array $value): ISearchRequestSimpleQuery; |
|
| 127 | - |
|
| 128 | - /** |
|
| 129 | - * Add value to compare (bool) |
|
| 130 | - * |
|
| 131 | - * @param bool $value |
|
| 132 | - * |
|
| 133 | - * @return ISearchRequestSimpleQuery |
|
| 134 | - * @since 17.0.0 |
|
| 135 | - */ |
|
| 136 | - public function addValueBool(bool $value): ISearchRequestSimpleQuery; |
|
| 49 | + const COMPARE_TYPE_TEXT = 1; |
|
| 50 | + const COMPARE_TYPE_KEYWORD = 2; |
|
| 51 | + const COMPARE_TYPE_INT_EQ = 3; |
|
| 52 | + const COMPARE_TYPE_INT_GTE = 4; |
|
| 53 | + const COMPARE_TYPE_INT_GT = 5; |
|
| 54 | + const COMPARE_TYPE_INT_LTE = 6; |
|
| 55 | + const COMPARE_TYPE_INT_LT = 7; |
|
| 56 | + const COMPARE_TYPE_BOOL = 8; |
|
| 57 | + const COMPARE_TYPE_ARRAY = 9; |
|
| 58 | + const COMPARE_TYPE_REGEX = 10; |
|
| 59 | + const COMPARE_TYPE_WILDCARD = 11; |
|
| 60 | + |
|
| 61 | + |
|
| 62 | + /** |
|
| 63 | + * Get the compare type of the query |
|
| 64 | + * |
|
| 65 | + * @return int |
|
| 66 | + * @since 17.0.0 |
|
| 67 | + */ |
|
| 68 | + public function getType(): int; |
|
| 69 | + |
|
| 70 | + |
|
| 71 | + /** |
|
| 72 | + * Get the field to apply query |
|
| 73 | + * |
|
| 74 | + * @return string |
|
| 75 | + * @since 17.0.0 |
|
| 76 | + */ |
|
| 77 | + public function getField(): string; |
|
| 78 | + |
|
| 79 | + /** |
|
| 80 | + * Set the field to apply query |
|
| 81 | + * |
|
| 82 | + * @param string $field |
|
| 83 | + * |
|
| 84 | + * @return ISearchRequestSimpleQuery |
|
| 85 | + * @since 17.0.0 |
|
| 86 | + */ |
|
| 87 | + public function setField(string $field): ISearchRequestSimpleQuery; |
|
| 88 | + |
|
| 89 | + |
|
| 90 | + /** |
|
| 91 | + * Get the all values to compare |
|
| 92 | + * |
|
| 93 | + * @return array |
|
| 94 | + * @since 17.0.0 |
|
| 95 | + */ |
|
| 96 | + public function getValues(): array; |
|
| 97 | + |
|
| 98 | + /** |
|
| 99 | + * Add value to compare (string) |
|
| 100 | + * |
|
| 101 | + * @param string $value |
|
| 102 | + * |
|
| 103 | + * @return ISearchRequestSimpleQuery |
|
| 104 | + * @since 17.0.0 |
|
| 105 | + */ |
|
| 106 | + public function addValue(string $value): ISearchRequestSimpleQuery; |
|
| 107 | + |
|
| 108 | + /** |
|
| 109 | + * Add value to compare (int) |
|
| 110 | + * |
|
| 111 | + * @param int $value |
|
| 112 | + * |
|
| 113 | + * @return ISearchRequestSimpleQuery |
|
| 114 | + * @since 17.0.0 |
|
| 115 | + */ |
|
| 116 | + public function addValueInt(int $value): ISearchRequestSimpleQuery; |
|
| 117 | + |
|
| 118 | + /** |
|
| 119 | + * Add value to compare (array) |
|
| 120 | + * |
|
| 121 | + * @param array $value |
|
| 122 | + * |
|
| 123 | + * @return ISearchRequestSimpleQuery |
|
| 124 | + * @since 17.0.0 |
|
| 125 | + */ |
|
| 126 | + public function addValueArray(array $value): ISearchRequestSimpleQuery; |
|
| 127 | + |
|
| 128 | + /** |
|
| 129 | + * Add value to compare (bool) |
|
| 130 | + * |
|
| 131 | + * @param bool $value |
|
| 132 | + * |
|
| 133 | + * @return ISearchRequestSimpleQuery |
|
| 134 | + * @since 17.0.0 |
|
| 135 | + */ |
|
| 136 | + public function addValueBool(bool $value): ISearchRequestSimpleQuery; |
|
| 137 | 137 | |
| 138 | 138 | } |
| 139 | 139 | |