| 1 | <?php |
||
| 11 | class GithubApi |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Github username |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $username; |
||
| 18 | |||
| 19 | 3 | public function __construct($username = null) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Get username passed as the parameter |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | 1 | public function getUsername() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Return an integer representing number of public repos |
||
| 38 | * the username provided has on github |
||
| 39 | * @return int |
||
| 40 | */ |
||
| 41 | 1 | public function getRepos() |
|
| 54 | |||
| 55 | } |