Skip to content

Commit

Permalink
Make fetch* methods protected to allow inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubboucek committed Sep 1, 2018
1 parent b726e8a commit 7a8ad82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/VyfakturujAPI.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ private function fetchRequest($path, $method, $data = array())
* @param array|null $data
* @return array|mixed
*/
private function fetchGet($path, $data = null)
protected function fetchGet($path, $data = null)
{
return $this->fetchRequest($path, self::HTTP_METHOD_GET, $data);
}
Expand All @@ -423,7 +423,7 @@ private function fetchGet($path, $data = null)
* @param array|null $data
* @return array|mixed
*/
private function fetchPost($path, $data = null)
protected function fetchPost($path, $data = null)
{
return $this->fetchRequest($path, self::HTTP_METHOD_POST, $data);
}
Expand All @@ -434,7 +434,7 @@ private function fetchPost($path, $data = null)
* @param array|null $data
* @return array|mixed
*/
private function fetchPut($path, $data = null)
protected function fetchPut($path, $data = null)
{
return $this->fetchRequest($path, self::HTTP_METHOD_PUT, $data);
}
Expand All @@ -445,7 +445,7 @@ private function fetchPut($path, $data = null)
* @param array|null $data
* @return array|mixed
*/
private function fetchDelete($path, $data = null)
protected function fetchDelete($path, $data = null)
{
return $this->fetchRequest($path, self::HTTP_METHOD_DELETE, $data);
}
Expand Down

0 comments on commit 7a8ad82

Please sign in to comment.