forked from zepgram/module-rest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParametersInterface.php
executable file
·136 lines (109 loc) · 2.66 KB
/
ParametersInterface.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php
/**
* This file is part of Zepgram\Rest\Model
*
* @package Zepgram\Rest\Model
* @file ParametersInterface.php
* @date 04 11 2021 23:28
*
* @author Benjamin Calef <[email protected]>
* @copyright 2021 Zepgram Copyright (c) (https://github.com/zepgram)
* @license MIT License
**/
declare(strict_types=1);
namespace Zepgram\Rest\Model;
use Magento\Framework\DataObject;
/**
* @method array toArray()
*/
interface ParametersInterface
{
/** @var string */
public const URI = 'uri';
/** @var string */
public const METHOD = 'method';
/** @var string */
public const IS_JSON_REQUEST = 'is_json_request';
/** @var string */
public const IS_JSON_RESPONSE = 'is_json_response';
/** @var string */
public const SERVICE_NAME = 'service_name';
/** @var string */
public const OPTIONS = 'options';
/** @var string */
public const CACHE_KEY = 'cache_key';
/** @var string */
public const CONFIG = 'config';
/**
* @return string
*/
public function getServiceName(): string;
/**
* @param string $serviceName
* @return $this
*/
public function setServiceName(string $serviceName): self;
/**
* @return string
*/
public function getUri(): string;
/**
* @param string $uri
* @return $this
*/
public function setUri(string $uri): self;
/**
* @return string
*/
public function getMethod(): string;
/**
* @param string $method
* @return $this
*/
public function setMethod(string $method): self;
/**
* @return bool
*/
public function getIsJsonRequest(): bool;
/**
* @param bool $isJsonRequest
* @return $this
*/
public function setIsJsonRequest(bool $isJsonRequest): self;
/**
* @return bool
*/
public function getIsJsonResponse(): bool;
/**
* @param bool $isJsonResponse
* @return $this
*/
public function setIsJsonResponse(bool $isJsonResponse): self;
/**
* @return array
*/
public function getOptions(): array;
/**
* @param array $options
* @return $this
*/
public function setOptions(array $options): self;
/**
* @return string|null
*/
public function getCacheKey(): ?string;
/**
* @param string|null $cacheKey
* @return $this
*/
public function setCacheKey(?string $cacheKey): self;
/**
* @return ConfigRequest
*/
public function getConfig(): ConfigRequest;
/**
* @param ConfigRequest $configRequest
* @return $this
*/
public function setConfig(ConfigRequest $configRequest): self;
}