-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed checking existance of pagination
- Loading branch information
1 parent
820d72e
commit 917a6cb
Showing
3 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?php | ||
<?php | ||
/** | ||
* Copyright 2015 Dirk Groenen | ||
* Copyright 2015 Dirk Groenen | ||
* | ||
* (c) Dirk Groenen <[email protected]> | ||
* | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
@@ -14,7 +14,7 @@ | |
use DirkGroenen\Pinterest\Exceptions\PinterestException; | ||
|
||
class Response { | ||
|
||
/** | ||
* Contains the raw response | ||
* | ||
|
@@ -24,14 +24,14 @@ class Response { | |
|
||
/** | ||
* Used curl instance | ||
* | ||
* | ||
* @var curl | ||
*/ | ||
private $curl; | ||
|
||
/** | ||
* Constructor | ||
* | ||
* | ||
* @param array $response | ||
* @param CurlBuilder $curl | ||
* @param curl $curl | ||
|
@@ -48,7 +48,7 @@ public function __construct( $response, CurlBuilder $curl ) | |
|
||
/** | ||
* Decode the string to an array | ||
* | ||
* | ||
* @access private | ||
* @param string $response | ||
* @return array | ||
|
@@ -60,7 +60,7 @@ private function decodeString( $response ) | |
|
||
/** | ||
* Return the requested key data | ||
* | ||
* | ||
* @access public | ||
* @param string $key | ||
* @return array | ||
|
@@ -70,9 +70,21 @@ public function __get($key) | |
return $this->response[$key]; | ||
} | ||
|
||
/** | ||
* Return if the key is set | ||
* | ||
* @access public | ||
* @param string $key | ||
* @return array | ||
*/ | ||
public function __isset($key) | ||
{ | ||
return isset($this->response[$key]); | ||
} | ||
|
||
/** | ||
* Get the response code from the request | ||
* | ||
* | ||
* @access public | ||
* @return int | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters