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
+
1
3
# Diffbot PHP API Wrapper
2
4
3
5
This 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 2
2
3
3
namespace Swader \Diffbot \Entity ;
4
4
5
- use GuzzleHttp \Message \Response ;
5
+ use GuzzleHttp \Message \ResponseInterface as Response ;
6
6
use Swader \Diffbot \Abstracts \Entity ;
7
7
8
8
class EntityIterator implements \Countable, \Iterator
Original file line number Diff line number Diff line change 2
2
3
3
namespace Swader \Diffbot \Factory ;
4
4
5
- use GuzzleHttp \Message \Response ;
5
+ use GuzzleHttp \Message \ResponseInterface as Response ;
6
6
use Swader \Diffbot \Entity \EntityIterator ;
7
7
use Swader \Diffbot \Exceptions \DiffbotException ;
8
8
use Swader \Diffbot \Interfaces \EntityFactory ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace Swader \Diffbot \Interfaces ;
4
4
5
- use GuzzleHttp \Message \Response ;
6
- use Swader \Diffbot \Abstracts \ Entity ;
5
+ use GuzzleHttp \Message \ResponseInterface as Response ;
6
+ use Swader \Diffbot \Entity \ EntityIterator ;
7
7
8
8
interface EntityFactory
9
9
{
10
10
/**
11
11
* Returns the entity iterator containing the appropriate entities as built by the contents of $response
12
12
*
13
13
* @param Response $response
14
- * @return Entity
14
+ * @return EntityIterator
15
15
*/
16
16
public function createAppropriateIterator (Response $ response );
17
17
}
Original file line number Diff line number Diff line change 9
9
*/
10
10
trait StandardApi {
11
11
12
-
13
12
/**
14
13
* Makes the API call return the links field, common to all standard API types
15
14
* @param $bool
You can’t perform that action at this time.
0 commit comments