1 | <?php |
||
8 | class MysqlGithubRepository implements GithubRepositoryInterface |
||
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 getEvents($limit = null, $offset = 0) |
||
44 | |||
45 | /** |
||
46 | * @param integer $eventId |
||
47 | * |
||
48 | * @return array|false |
||
49 | */ |
||
50 | public function getEventByEventId($eventId) |
||
67 | |||
68 | /** |
||
69 | * @param integer $eventId |
||
70 | * @param string $eventType |
||
71 | * @param DateTime $datetime |
||
72 | * @param array $metadata |
||
73 | * |
||
74 | * @return |
||
75 | */ |
||
76 | public function insertEvent($eventId, $eventType, DateTime $datetime, array $metadata) |
||
96 | } |
||
97 |