| Total Complexity | 5 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class GoogleApiConfiguration |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $appId; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $appSecret; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $appPermissions; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | private $redirectUrl; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $appId |
||
| 36 | * @param string $appSecret |
||
| 37 | * @param array $appPermissions |
||
| 38 | * @param string $redirectUrl |
||
| 39 | */ |
||
| 40 | 2 | public function __construct($appId, $appSecret, array $appPermissions, $redirectUrl) |
|
| 41 | { |
||
| 42 | 2 | $this->appId = $appId; |
|
| 43 | 2 | $this->appSecret = $appSecret; |
|
| 44 | 2 | $this->appPermissions = $appPermissions; |
|
| 45 | 2 | $this->redirectUrl = $redirectUrl; |
|
| 46 | 2 | } |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | 2 | public function appId() |
|
| 52 | { |
||
| 53 | 2 | return $this->appId; |
|
|
|
|||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | 2 | public function appSecret() |
|
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | 2 | public function appPermissions() |
|
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return string |
||
| 74 | */ |
||
| 75 | 2 | public function redirectUrl() |
|
| 78 | } |
||
| 79 | } |
||
| 80 |