Completed
Pull Request — master (#150)
by Barry vd.
05:12
created

ApiKeys::setMozscapeAccessId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
namespace SEOstats\Config;
3
4
/**
5
 * Configuration constants for the SEOstats library.
6
 *
7
 * @package    SEOstats
8
 * @author     Stephan Schmitz <[email protected]>
9
 * @copyright  Copyright (c) 2010 - present Stephan Schmitz
10
 * @license    http://eyecatchup.mit-license.org/  MIT License
11
 * @updated    2013/12/11
12
 */
13
14
/**
15
 * Client API keys
16
 * @package    SEOstats
17
 */
18
class ApiKeys
19
{
20
    // To acquire an API key, visit Google's APIs Console here:
21
    //      https://code.google.com/apis/console
22
    // In the Services pane, activate the "PageSpeed Insights API" (not the service!).
23
    // Next, go to the API Access pane. The API key is near the bottom of that pane,
24
    // in the section titled "Simple API Access.".
25
    protected static $GOOGLE_SIMPLE_API_ACCESS_KEY = '';
26
27
    // To acquire a Mozscape (f.k.a. SEOmoz) API key, visit:
28
    //      https://moz.com/products/api/keys
29
    protected static $MOZSCAPE_ACCESS_ID  = '';
30
    protected static $MOZSCAPE_SECRET_KEY = '';
31
32
    // To acquire a SISTRIX API key, visit:
33
    //      http://www.sistrix.de
34
    protected static $SISTRIX_API_ACCESS_KEY = '';
35
36 4
    public static function getGoogleSimpleApiAccessKey() {
37 4
        return static::$GOOGLE_SIMPLE_API_ACCESS_KEY;
38
    }
39
40
    public static function setGoogleSimpleApiAccessKey($value) {
41
        return static::$GOOGLE_SIMPLE_API_ACCESS_KEY = $value;
42
    }
43
44 6
    public static function getMozscapeAccessId() {
45 6
        return static::$MOZSCAPE_ACCESS_ID;
46
    }
47
48
    public static function setMozscapeAccessId($value) {
49
        return static::$MOZSCAPE_ACCESS_ID = $value;
50
    }
51
52 1
    public static function getMozscapeSecretKey()
53
    {
54 1
        return static::$MOZSCAPE_SECRET_KEY;
55
    }
56
57
    public static function setMozscapeSecretKey($value)
58
    {
59
        return static::$MOZSCAPE_SECRET_KEY = $value;
60
    }
61
62 13
    public static function getSistrixApiAccessKey()
63
    {
64 13
        return static::$SISTRIX_API_ACCESS_KEY;
65
    }
66
67
    public static function setSistrixApiAccessKey($value)
68
    {
69
        return static::$SISTRIX_API_ACCESS_KEY = $value;
70
    }
71
}
72