Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class Configuration extends Github\Sanity |
||
14 | { |
||
15 | /** @var string */ |
||
16 | public $clientId; |
||
17 | |||
18 | /** @var string */ |
||
19 | public $clientSecret; |
||
20 | |||
21 | /** @var string[] */ |
||
22 | public $scopes; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * @param string |
||
27 | * @param string |
||
28 | * @param string[] |
||
29 | */ |
||
30 | public function __construct($clientId, $clientSecret, array $scopes = []) |
||
31 | { |
||
32 | $this->clientId = $clientId; |
||
33 | $this->clientSecret = $clientSecret; |
||
34 | $this->scopes = $scopes; |
||
35 | } |
||
36 | |||
37 | |||
38 | /** |
||
39 | * @return Configuration |
||
40 | */ |
||
41 | public static function fromArray(array $conf) |
||
44 | } |
||
45 | |||
47 |