Issues (17)

src/ThirdParty/Google/GoogleApiConfiguration.php (1 issue)

1
<?php
2
/**
3
 * @author Tharanga Kothalawala <[email protected]>
4
 * @date 30-12-2018
5
 */
6
7
namespace TSK\SSO\ThirdParty\Google;
8
9
/**
10
 * @package TSK\SSO\ThirdParty\Google
11
 */
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;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->appId returns the type string which is incompatible with the documented return type integer.
Loading history...
54
    }
55
56
    /**
57
     * @return string
58
     */
59 2
    public function appSecret()
60
    {
61 2
        return $this->appSecret;
62
    }
63
64
    /**
65
     * @return array
66
     */
67 2
    public function appPermissions()
68
    {
69 2
        return $this->appPermissions;
70
    }
71
72
    /**
73
     * @return string
74
     */
75 2
    public function redirectUrl()
76
    {
77 2
        return $this->redirectUrl;
78
    }
79
}
80