1 | <?php |
||
15 | class GithubApi |
||
16 | { |
||
17 | /** |
||
18 | * Github username |
||
19 | * @var string |
||
20 | */ |
||
21 | 5 | protected $username; |
|
22 | |||
23 | 5 | public function __construct($username = null) |
|
31 | |||
32 | /** |
||
33 | 1 | * Get username passed as the parameter |
|
34 | * @return string |
||
35 | 1 | */ |
|
36 | public function getUsername() |
||
40 | |||
41 | /** |
||
42 | * Return an integer representing number of public repos |
||
43 | 2 | * the username provided has on github |
|
44 | * @return int |
||
45 | 2 | */ |
|
46 | 2 | public function getRepos() |
|
61 | |||
62 | } |