SandBox   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getToken() 0 3 1
A getCredential() 0 3 1
A __construct() 0 4 1
A getUri() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: igor
5
 * Date: 09/06/18
6
 * Time: 14:52
7
 */
8
9
namespace AdminWeb\PayerPagSeguro\Env;
10
11
12
use AdminWeb\Payer\EnvInterface;
13
14
class SandBox implements EnvInterface
15
{
16
    const Env = self::SandBox;
17
    private $credential, $token;
18
19
    /**
20
     * Production constructor.
21
     * @param $credential
22
     * @param $token
23
     */
24
    public function __construct($credential, $token)
25
    {
26
        $this->credential = $credential;
27
        $this->token = $token;
28
    }
29
30
    /**
31
     * @return mixed
32
     */
33
    public function getCredential()
34
    {
35
        return $this->credential;
36
    }
37
38
    /**
39
     * @return mixed
40
     */
41
    public function getToken()
42
    {
43
        return $this->token;
44
    }
45
46
    public function getUri()
47
    {
48
        return 'https://ws.sandbox.pagseguro.uol.com.br';
49
    }
50
}