File tree Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1+ ![ Travis Build Badge] ( https://travis-ci.org/Swader/diffbot-php-client.svg?branch=master )
2+
13# Diffbot PHP API Wrapper
24
35This package is a slightly overengineered Diffbot API wrapper. It uses Guzzle to make API calls. To learn more about Diffbot see [ here] ( http://www.sitepoint.com/tag/diffbot/ ) and [ their homepage] ( http://diffbot.com ) .
Original file line number Diff line number Diff line change 22
33namespace Swader \Diffbot \Entity ;
44
5- use GuzzleHttp \Message \Response ;
5+ use GuzzleHttp \Message \ResponseInterface as Response ;
66use Swader \Diffbot \Abstracts \Entity ;
77
88class EntityIterator implements \Countable, \Iterator
Original file line number Diff line number Diff line change 22
33namespace Swader \Diffbot \Factory ;
44
5- use GuzzleHttp \Message \Response ;
5+ use GuzzleHttp \Message \ResponseInterface as Response ;
66use Swader \Diffbot \Entity \EntityIterator ;
77use Swader \Diffbot \Exceptions \DiffbotException ;
88use Swader \Diffbot \Interfaces \EntityFactory ;
Original file line number Diff line number Diff line change 22
33namespace Swader \Diffbot \Interfaces ;
44
5- use GuzzleHttp \Message \Response ;
6- use Swader \Diffbot \Abstracts \ Entity ;
5+ use GuzzleHttp \Message \ResponseInterface as Response ;
6+ use Swader \Diffbot \Entity \ EntityIterator ;
77
88interface EntityFactory
99{
1010 /**
1111 * Returns the entity iterator containing the appropriate entities as built by the contents of $response
1212 *
1313 * @param Response $response
14- * @return Entity
14+ * @return EntityIterator
1515 */
1616 public function createAppropriateIterator (Response $ response );
1717}
Original file line number Diff line number Diff line change 99 */
1010trait StandardApi {
1111
12-
1312 /**
1413 * Makes the API call return the links field, common to all standard API types
1514 * @param $bool
You can’t perform that action at this time.
0 commit comments