GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( e20ba5...6ebe68 )
by Christian
04:06
created

FacebookConnection::getSharedSecret()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * (c) Christian Gripp <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Core23\FacebookBundle\Connection;
11
12
use Facebook\Facebook;
13
14
final class FacebookConnection extends Facebook
15
{
16
    /**
17
     * @var string
18
     */
19
    private $apiId;
20
21
    /**
22
     * @var string
23
     */
24
    private $sharedSecret;
25
26
    /**
27
     * AbstractConnection constructor.
28
     *
29
     * @param string $apiKey
30
     * @param string $sharedSecret
31
     */
32
    public function __construct(string $apiKey, string $sharedSecret)
33
    {
34
        parent::__construct(array(
35
            'app_id'     => $apiKey,
36
            'app_secret' => $sharedSecret,
37
        ));
38
39
        $this->apiId        = $apiKey;
40
        $this->sharedSecret = $sharedSecret;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getApiId(): string
47
    {
48
        return $this->apiId;
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getSharedSecret(): string
55
    {
56
        return $this->sharedSecret;
57
    }
58
}
59