Skip to content

Commit

Permalink
update access modifier attribute for Response class from private to p…
Browse files Browse the repository at this point in the history
…rotected
  • Loading branch information
harryosmar committed Jan 22, 2019
1 parent b543a07 commit b02f1d9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Response implements PhpRestfulApiResponse
*
* @var array
*/
private $phrases = [
protected $phrases = [
// INFORMATIONAL CODES
100 => 'Continue',
101 => 'Switching Protocols',
Expand Down Expand Up @@ -108,17 +108,17 @@ class Response implements PhpRestfulApiResponse
/**
* @var string
*/
private $reasonPhrase = '';
protected $reasonPhrase = '';

/**
* @var int
*/
private $statusCode;
protected $statusCode;

/**
* @var int|string
*/
private $errorCode;
protected $errorCode;

/**
* Response constructor.
Expand Down Expand Up @@ -407,7 +407,7 @@ public function setErrorCode($errorCode)
* @param int $statusCode
* @throws InvalidArgumentException on an invalid status code.
*/
private function setStatusCode(int $statusCode)
protected function setStatusCode(int $statusCode)
{
if ($statusCode < static::MIN_STATUS_CODE_VALUE
|| $statusCode > static::MAX_STATUS_CODE_VALUE
Expand All @@ -429,7 +429,7 @@ private function setStatusCode(int $statusCode)
* @return string
* @throws InvalidArgumentException if unable to encode the $data to JSON.
*/
private function jsonEncode($data)
protected function jsonEncode($data)
{
if (is_resource($data)) {
throw new InvalidArgumentException('Cannot JSON encode resources');
Expand Down

0 comments on commit b02f1d9

Please sign in to comment.