| 1 | <?php |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Extended GitHub API Repositories class. |
||
| 16 | */ |
||
| 17 | class Repositories extends BaseRepositories |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * API Response object |
||
| 21 | * |
||
| 22 | * @var Response |
||
| 23 | */ |
||
| 24 | private $apiResponse; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get the last API response if one is set |
||
| 28 | * |
||
| 29 | * @return Response|null |
||
| 30 | */ |
||
| 31 | public function getApiResponse() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get a list of tags on a repository. |
||
| 38 | * |
||
| 39 | * Note: This is different from the parent `getListTags` method as it adds support for the API's pagination. This extended method can be removed |
||
| 40 | * if the upstream class gains this support. |
||
| 41 | * |
||
| 42 | * @param string $owner Repository owner. |
||
| 43 | * @param string $repo Repository name. |
||
| 44 | * @param integer $page The page number from which to get items. |
||
| 45 | * |
||
| 46 | * @return object |
||
| 47 | */ |
||
| 48 | public function getTags($owner, $repo, $page = 0) |
||
| 58 | } |
||
| 59 |