-
-
Notifications
You must be signed in to change notification settings - Fork 592
Expand file tree
/
Copy pathCodeOfConduct.php
More file actions
34 lines (30 loc) · 712 Bytes
/
CodeOfConduct.php
File metadata and controls
34 lines (30 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace Github\Api\Miscellaneous;
use Github\Api\AbstractApi;
class CodeOfConduct extends AbstractApi
{
/**
* List all codes of conduct.
*
* @link https://developer.github.com/v3/codes_of_conduct/#list-all-codes-of-conduct
*
* @return array
*/
public function all()
{
return $this->get('/codes_of_conduct');
}
/**
* Get an individual code of conduct.
*
* @link https://developer.github.com/v3/codes_of_conduct/#get-an-individual-code-of-conduct
*
* @param string $key
*
* @return array
*/
public function show($key)
{
return $this->get('/codes_of_conduct/'.rawurlencode($key));
}
}