1 | <?php |
||
8 | class MysqlGoodreadRepository implements GoodreadRepositoryInterface |
||
9 | { |
||
10 | |||
11 | /** @var ConnectionLocator */ |
||
12 | protected $connections; |
||
13 | |||
14 | /** |
||
15 | * @param ConnectonLocator $connections |
||
16 | */ |
||
17 | public function __construct(ConnectionLocator $connections) |
||
21 | |||
22 | /** |
||
23 | * @param integer $limit |
||
24 | * @param integer $offset |
||
25 | * |
||
26 | * @return array|false |
||
27 | */ |
||
28 | public function getReviews($limit = null, $offset = 0) |
||
44 | |||
45 | public function getReviewByPermalink($permalink) |
||
62 | |||
63 | public function insertReview($permalink, $bookId, DateTime $datetime, array $metadata) |
||
83 | } |
||
84 |