GithubScope::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace BWC\Share\Github;
4
5
final class GithubScope
6
{
7
    /**
8
     * Grants read/write access to profile info only. Note that this scope includes user:email and user:follow.
9
     */
10
    const USER = 'user';
11
12
    /**
13
     * Grants read access to a user’s email addresses.
14
     */
15
    const USER_EMAIL = 'user:email';
16
17
    /**
18
     * Grants access to follow or unfollow other users.
19
     */
20
    const USER_FOLLOW = 'user:follow';
21
22
    /**
23
     * Grants read/write access to code, commit statuses, and deployment statuses for public repositories and organizations.
24
     */
25
    const REPO_PUBLIC = 'public_repo';
26
27
    /**
28
     * Grants read/write access to code, commit statuses, and deployment statuses for public and private repositories and organizations.
29
     */
30
    const REPO = 'repo';
31
32
    /**
33
     * Grants read/write access to public and private repository commit statuses. This scope is only necessary to grant
34
     * other users or services access to private repository commit statuses without granting access to the code.
35
     */
36
    const REPO_STATUS = 'repo:status';
37
38
    /**
39
     * Grants access to delete adminable repositories.
40
     */
41
    const REPO_DELETE = 'delete_repo';
42
43
    /**
44
     * Grants read access to a user’s notifications. repo also provides this access.
45
     */
46
    const NOTIFICATIONS = 'notifications';
47
48
    /**
49
     * Grants write access to gists.
50
     */
51
    const GIST = 'gist';
52
53
    /**
54
     * Grants read and ping access to hooks in public or private repositories.
55
     */
56
    const REPO_HOOK_READ = 'read:repo_hook';
57
58
    /**
59
     * Grants read, write, and ping access to hooks in public or private repositories.
60
     */
61
    const REPO_HOOK_WRITE = 'write:repo_hook';
62
63
    /**
64
     * Grants read, write, ping, and delete access to hooks in public or private repositories.
65
     */
66
    const REPO_HOOK_ADMIN = 'admin:repo_hook';
67
68
    /**
69
     * Read-only access to organization, teams, and membership.
70
     */
71
    const ORG_READ = 'read:org';
72
73
    /**
74
     * Publicize and unpublicize organization membership.
75
     */
76
    const ORG_WRITE = 'write:org';
77
78
    /**
79
     * Fully manage organization, teams, and memberships.
80
     */
81
    const ORG_ADMIN = 'admin:org';
82
83
    /**
84
     * List and view details for public keys.
85
     */
86
    const PUBLIC_KEY_READ = 'read:public_key';
87
88
    /**
89
     * Create, list, and view details for public keys.
90
     */
91
    const PUBLIC_KEY_WRITE = 'write:public_key';
92
93
    /**
94
     * Fully manage public keys.
95
     */
96
    const PUBLIC_KEY_ADMIN = 'admin:public_key';
97
98
99
100
    private function __construct() { }
101
}