@@ -65,15 +65,15 @@ public function __construct( $oAuthToken, HttpTransport $transport )
65
65
/**
66
66
* @return string
67
67
*/
68
- public function getApiEndPoint ()
68
+ protected function getApiEndPoint ()
69
69
{
70
70
return $ this ->apiEndPoint ;
71
71
}
72
72
73
73
/**
74
74
* @param string $apiEndPoint
75
75
*/
76
- public function setApiEndPoint ( $ apiEndPoint )
76
+ protected function setApiEndPoint ( $ apiEndPoint )
77
77
{
78
78
$ this ->apiEndPoint = $ apiEndPoint ;
79
79
}
@@ -121,15 +121,15 @@ public function getResponseReceived()
121
121
/**
122
122
* @param $url
123
123
*/
124
- public function setApiRequestUrl ( $ url )
124
+ protected function setApiRequestUrl ( $ url )
125
125
{
126
126
$ this ->apiRequestUrl = $ url ;
127
127
}
128
128
129
129
/**
130
130
* @return string
131
131
*/
132
- public function getApiRequestUrl ()
132
+ protected function getApiRequestUrl ()
133
133
{
134
134
return $ this ->apiRequestUrl ;
135
135
}
@@ -138,7 +138,7 @@ public function getApiRequestUrl()
138
138
* @param array $queryString
139
139
* @return string
140
140
*/
141
- public function getRequestUrl ( array $ queryString = [ ] )
141
+ protected function getRequestUrl ( array $ queryString = [ ] )
142
142
{
143
143
$ paths = [
144
144
$ this ->getApiEndPoint (),
@@ -170,7 +170,7 @@ public function setLogger( LoggerInterface $logger )
170
170
* @param $message
171
171
* @param $data
172
172
*/
173
- public function logDebug ( $ message , array $ data = [ ] )
173
+ protected function logDebug ( $ message , array $ data = [ ] )
174
174
{
175
175
$ logger = $ this ->getLogger ();
176
176
@@ -184,15 +184,15 @@ public function logDebug( $message, array $data = [ ] )
184
184
/**
185
185
* @return string
186
186
*/
187
- public function getBaseApiPath ()
187
+ protected function getBaseApiPath ()
188
188
{
189
189
return $ this ->baseApiPath ;
190
190
}
191
191
192
192
/**
193
193
* @param string $baseApiPath
194
194
*/
195
- public function setBaseApiPath ( $ baseApiPath )
195
+ protected function setBaseApiPath ( $ baseApiPath )
196
196
{
197
197
$ this ->baseApiPath = $ baseApiPath ;
198
198
}
@@ -208,7 +208,7 @@ public function getRequest()
208
208
/**
209
209
* @param HttpRequest $request
210
210
*/
211
- public function setRequest ( $ request )
211
+ protected function setRequest ( $ request )
212
212
{
213
213
$ this ->request = $ request ;
214
214
}
@@ -222,7 +222,7 @@ public function setRequest( $request )
222
222
* @param $userEmail
223
223
* @return array
224
224
*/
225
- public function simpleGetRequest ( array $ queryString = [ ], $ userId = null , $ userEmail = null )
225
+ protected function simpleGetRequest ( array $ queryString = [ ], $ userId = null , $ userEmail = null )
226
226
{
227
227
$ request = new GetRequest ( $ this ->getOAuthToken (), $ this ->getRequestUrl ( $ queryString ) );
228
228
@@ -255,7 +255,7 @@ public function simpleGetRequest( array $queryString = [ ], $userId = null, $use
255
255
* @param array $query
256
256
* @return bool
257
257
*/
258
- public function saveFileRequest ( $ saveToPath , array $ query = [ ] )
258
+ protected function saveFileRequest ( $ saveToPath , array $ query = [ ] )
259
259
{
260
260
$ request = new GetRequest ( $ this ->getOAuthToken (), $ this ->getRequestUrl ( $ query ) );
261
261
$ request ->setSaveFilePath ( $ saveToPath );
@@ -281,7 +281,7 @@ public function saveFileRequest( $saveToPath, array $query = [ ] )
281
281
* @param null $userEmail
282
282
* @return mixed
283
283
*/
284
- public function simplePostRequest ( array $ data , $ userId = null , $ userEmail = null )
284
+ protected function simplePostRequest ( array $ data , $ userId = null , $ userEmail = null )
285
285
{
286
286
$ request = new PostRequest ( $ this ->getOAuthToken (), $ this ->getRequestUrl () );
287
287
0 commit comments