1 | <?php |
||
8 | class GithubRepoPermissions implements GithubRepoPermissonsInterface |
||
9 | { |
||
10 | /** @var bool */ |
||
11 | private $admin; |
||
12 | /** @var bool */ |
||
13 | private $push; |
||
14 | /** @var bool */ |
||
15 | private $read; |
||
16 | |||
17 | /** |
||
18 | * GithubRepoPermissions constructor. |
||
19 | * |
||
20 | * @param bool $admin |
||
21 | * @param bool $push |
||
22 | * @param bool $read |
||
23 | */ |
||
24 | public function __construct(bool $admin, bool $push, bool $read) |
||
30 | |||
31 | /** |
||
32 | * @return bool |
||
33 | */ |
||
34 | public function isAdmin() : bool |
||
38 | |||
39 | /** |
||
40 | * @return bool |
||
41 | */ |
||
42 | public function isPushAllowed() : bool |
||
46 | |||
47 | /** |
||
48 | * @return bool |
||
49 | */ |
||
50 | public function isReadAllowed() : bool |
||
54 | } |
||
55 |