SandBox::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
}