1 | <?php |
||
21 | class GitHubAPI |
||
22 | { |
||
23 | /** |
||
24 | * Returns the number of public repos a developer has on GitHub |
||
25 | * |
||
26 | * @param string $username GitHub username |
||
27 | * @return mixed |
||
28 | * @throws NullUserException |
||
29 | */ |
||
30 | public static function getNumberOfRepos($username) |
||
41 | |||
42 | /** |
||
43 | * Returns the developer's public GitHub information in JSON |
||
44 | * |
||
45 | * @param string $username The username whose information is to be retrieved |
||
46 | * @return string |
||
47 | * @throws UserNotFoundException |
||
48 | */ |
||
49 | private static function getGithubInfo($username) |
||
64 | } |
||
65 |