@@ -54,6 +54,7 @@ |
||
| 54 | 54 | * |
| 55 | 55 | * @param string $client_id |
| 56 | 56 | * @param string $client_secret |
| 57 | + * @param Request $request |
|
| 57 | 58 | */ |
| 58 | 59 | public function __construct( $client_id, $client_secret, $request ) |
| 59 | 60 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @param string $board_id |
| 23 | 23 | * @param array $data |
| 24 | 24 | * @throws Exceptions/PinterestExceptions |
| 25 | - * @return Models\Board |
|
| 25 | + * @return Board |
|
| 26 | 26 | */ |
| 27 | 27 | public function get( $board_id, array $data = [] ) |
| 28 | 28 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * @access public |
| 37 | 37 | * @param array $data |
| 38 | 38 | * @throws Exceptions/PinterestExceptions |
| 39 | - * @return Models\Board |
|
| 39 | + * @return Board |
|
| 40 | 40 | */ |
| 41 | 41 | public function create( array $data ) |
| 42 | 42 | { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * @access public |
| 51 | 51 | * @param string $board_id |
| 52 | 52 | * @throws Exceptions/PinterestExceptions |
| 53 | - * @return Models\Board |
|
| 53 | + * @return boolean |
|
| 54 | 54 | */ |
| 55 | 55 | public function delete( $board_id ) |
| 56 | 56 | { |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright 2015 Dirk Groenen |
|
| 4 | - * |
|
| 5 | - * (c) Dirk Groenen <[email protected]> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - */ |
|
| 3 | + * Copyright 2015 Dirk Groenen |
|
| 4 | + * |
|
| 5 | + * (c) Dirk Groenen <[email protected]> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace DirkGroenen\Pinterest\Exceptions; |
| 12 | 12 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | /** |
| 34 | 34 | * Create a new model instance |
| 35 | 35 | * |
| 36 | - * @param Transport\Request $request |
|
| 36 | + * @param Request $request |
|
| 37 | 37 | * @param Pinterest $master |
| 38 | 38 | * @return void |
| 39 | 39 | */ |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright 2015 Dirk Groenen |
|
| 4 | - * |
|
| 5 | - * (c) Dirk Groenen <[email protected]> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - */ |
|
| 3 | + * Copyright 2015 Dirk Groenen |
|
| 4 | + * |
|
| 5 | + * (c) Dirk Groenen <[email protected]> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace DirkGroenen\Pinterest\Exceptions; |
| 12 | 12 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @param string $pin_id |
| 23 | 23 | * @param array $data |
| 24 | 24 | * @throws Exceptions/PinterestExceptions |
| 25 | - * @return Models\Pin |
|
| 25 | + * @return Pin |
|
| 26 | 26 | */ |
| 27 | 27 | public function get( $pin_id, array $data = [] ) |
| 28 | 28 | { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @param string $board_id |
| 38 | 38 | * @param array $data |
| 39 | 39 | * @throws Exceptions/PinterestExceptions |
| 40 | - * @return Models\Collection |
|
| 40 | + * @return Collection |
|
| 41 | 41 | */ |
| 42 | 42 | public function fromBoard( $board_id, array $data = [] ) |
| 43 | 43 | { |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * @access public |
| 52 | 52 | * @param array $data |
| 53 | 53 | * @throws Exceptions/PinterestExceptions |
| 54 | - * @return Models\Pin |
|
| 54 | + * @return Pin |
|
| 55 | 55 | */ |
| 56 | 56 | public function create( array $data ) |
| 57 | 57 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * @param string $pin_id |
| 76 | 76 | * @param array $data |
| 77 | 77 | * @throws Exceptions/PinterestExceptions |
| 78 | - * @return Models\Pin |
|
| 78 | + * @return Pin |
|
| 79 | 79 | */ |
| 80 | 80 | public function update( $pin_id, array $data ) |
| 81 | 81 | { |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright 2015 Dirk Groenen |
|
| 4 | - * |
|
| 5 | - * (c) Dirk Groenen <[email protected]> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - */ |
|
| 3 | + * Copyright 2015 Dirk Groenen |
|
| 4 | + * |
|
| 5 | + * (c) Dirk Groenen <[email protected]> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace DirkGroenen\Pinterest\Exceptions; |
| 12 | 12 | |
@@ -251,7 +251,7 @@ |
||
| 251 | 251 | * Make the collection items iteratable |
| 252 | 252 | * |
| 253 | 253 | * @access public |
| 254 | - * @return ArrayIterator |
|
| 254 | + * @return \ArrayIterator |
|
| 255 | 255 | */ |
| 256 | 256 | public function getIterator() { |
| 257 | 257 | return new \ArrayIterator($this->items); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | $this->items = $items->data; |
| 81 | 81 | } |
| 82 | 82 | else{ |
| 83 | - throw new PinterestException("$items needs to be an instance of Transport\Response or an array."); |
|
| 83 | + throw new PinterestException("$items needs to be an instance of Transport\Response or an array."); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | // Transform the raw collection data to models |
@@ -51,7 +51,6 @@ |
||
| 51 | 51 | * @param string $client_id |
| 52 | 52 | * @param string $client_secret |
| 53 | 53 | * @param CurlBuilder $curlbuilder |
| 54 | - * @param string $redirect_uri |
|
| 55 | 54 | */ |
| 56 | 55 | public function __construct($client_id, $client_secret, $curlbuilder = null) |
| 57 | 56 | { |
@@ -89,7 +89,6 @@ discard block |
||
| 89 | 89 | * Make a post request to the given endpoint |
| 90 | 90 | * |
| 91 | 91 | * @access public |
| 92 | - * @param string $endpoint |
|
| 93 | 92 | * @param array $parameters |
| 94 | 93 | * @return [type] |
| 95 | 94 | */ |
@@ -102,7 +101,6 @@ discard block |
||
| 102 | 101 | * Make a delete request to the given endpoint |
| 103 | 102 | * |
| 104 | 103 | * @access public |
| 105 | - * @param string $endpoint |
|
| 106 | 104 | * @param array $parameters |
| 107 | 105 | * @return [type] |
| 108 | 106 | */ |
@@ -115,7 +113,6 @@ discard block |
||
| 115 | 113 | * Make an update request to the given endpoint |
| 116 | 114 | * |
| 117 | 115 | * @access public |
| 118 | - * @param string $endpoint |
|
| 119 | 116 | * @param array $parameters |
| 120 | 117 | * @return [type] |
| 121 | 118 | */ |
@@ -127,9 +124,7 @@ discard block |
||
| 127 | 124 | /** |
| 128 | 125 | * Create a new model instance |
| 129 | 126 | * |
| 130 | - * @param Transport\Request $request |
|
| 131 | - * @param Pinterest $master |
|
| 132 | - * @return void |
|
| 127 | + * @return CurlBuilder |
|
| 133 | 128 | */ |
| 134 | 129 | public function getHeaders() |
| 135 | 130 | { |
@@ -144,7 +139,7 @@ discard block |
||
| 144 | 139 | * @param string $apiCall |
| 145 | 140 | * @param array $parameters |
| 146 | 141 | * @param array $headers |
| 147 | - * @return mixed |
|
| 142 | + * @return Response |
|
| 148 | 143 | */ |
| 149 | 144 | public function execute( $method, $apiCall, array $parameters = array(), $headers = array() ) |
| 150 | 145 | { |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright 2015 Dirk Groenen |
|
| 4 | - * |
|
| 5 | - * (c) Dirk Groenen <[email protected]> |
|
| 6 | - * |
|
| 7 | - * For the full copyright and license information, please view the LICENSE |
|
| 8 | - * file that was distributed with this source code. |
|
| 9 | - */ |
|
| 3 | + * Copyright 2015 Dirk Groenen |
|
| 4 | + * |
|
| 5 | + * (c) Dirk Groenen <[email protected]> |
|
| 6 | + * |
|
| 7 | + * For the full copyright and license information, please view the LICENSE |
|
| 8 | + * file that was distributed with this source code. |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace DirkGroenen\Pinterest\Endpoints; |
| 12 | 12 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Constructor |
| 34 | 34 | * |
| 35 | - * @param array $response |
|
| 35 | + * @param string $response |
|
| 36 | 36 | * @param CurlBuilder $curl |
| 37 | 37 | * @param curl $curl |
| 38 | 38 | */ |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * |
| 76 | 76 | * @access public |
| 77 | 77 | * @param string $key |
| 78 | - * @return array |
|
| 78 | + * @return boolean |
|
| 79 | 79 | */ |
| 80 | 80 | public function __isset($key) |
| 81 | 81 | { |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * Execute the curl request |
| 81 | 81 | * |
| 82 | 82 | * @access public |
| 83 | - * @return mixed |
|
| 83 | + * @return false|string |
|
| 84 | 84 | */ |
| 85 | 85 | public function execute() |
| 86 | 86 | { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * Check if the curl request ended up with errors |
| 92 | 92 | * |
| 93 | 93 | * @access public |
| 94 | - * @return boolean |
|
| 94 | + * @return integer |
|
| 95 | 95 | */ |
| 96 | 96 | public function hasErrors() |
| 97 | 97 | { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * Parse string headers into array |
| 159 | 159 | * |
| 160 | 160 | * @access private |
| 161 | - * @param array $headers |
|
| 161 | + * @param string $headers |
|
| 162 | 162 | * @return array |
| 163 | 163 | */ |
| 164 | 164 | private function parseHeaders($headers) { |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | * |
| 181 | 181 | * @see http://slopjong.de/2012/03/31/curl-follow-locations-with-safe_mode-enabled-or-open_basedir-set/ |
| 182 | 182 | * @access private |
| 183 | - * @return mixed |
|
| 183 | + * @return false|string |
|
| 184 | 184 | */ |
| 185 | 185 | private function execFollow() { |
| 186 | 186 | $mr = 5; |