File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class Response implements PhpRestfulApiResponse
31
31
*
32
32
* @var array
33
33
*/
34
- private $ phrases = [
34
+ protected $ phrases = [
35
35
// INFORMATIONAL CODES
36
36
100 => 'Continue ' ,
37
37
101 => 'Switching Protocols ' ,
@@ -108,17 +108,17 @@ class Response implements PhpRestfulApiResponse
108
108
/**
109
109
* @var string
110
110
*/
111
- private $ reasonPhrase = '' ;
111
+ protected $ reasonPhrase = '' ;
112
112
113
113
/**
114
114
* @var int
115
115
*/
116
- private $ statusCode ;
116
+ protected $ statusCode ;
117
117
118
118
/**
119
119
* @var int|string
120
120
*/
121
- private $ errorCode ;
121
+ protected $ errorCode ;
122
122
123
123
/**
124
124
* Response constructor.
@@ -407,7 +407,7 @@ public function setErrorCode($errorCode)
407
407
* @param int $statusCode
408
408
* @throws InvalidArgumentException on an invalid status code.
409
409
*/
410
- private function setStatusCode (int $ statusCode )
410
+ protected function setStatusCode (int $ statusCode )
411
411
{
412
412
if ($ statusCode < static ::MIN_STATUS_CODE_VALUE
413
413
|| $ statusCode > static ::MAX_STATUS_CODE_VALUE
@@ -429,7 +429,7 @@ private function setStatusCode(int $statusCode)
429
429
* @return string
430
430
* @throws InvalidArgumentException if unable to encode the $data to JSON.
431
431
*/
432
- private function jsonEncode ($ data )
432
+ protected function jsonEncode ($ data )
433
433
{
434
434
if (is_resource ($ data )) {
435
435
throw new InvalidArgumentException ('Cannot JSON encode resources ' );
You can’t perform that action at this time.
0 commit comments