Completed
Push — master ( d08a84...aa40a2 )
by Eduardo
05:35
created

Testing::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 24
Code Lines 21

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 21
nc 1
nop 0
dl 0
loc 24
ccs 0
cts 13
cp 0
crap 2
rs 9.584
c 0
b 0
f 0
1
<?php
2
namespace Eduardokum\CorreiosPhp\Config;
3
4
use Eduardokum\CorreiosPhp\Contracts\Config\Config as ConfigContract;
5
use Eduardokum\CorreiosPhp\Entities\Sender;
6
7
class Testing extends Config implements ConfigContract
8
{
9
    public function __construct()
10
    {
11
        parent::__construct();
12
        $this->environment = 'testing';
13
        $this->cnpj = '34028316000103';
14
        $this->user = null;
15
        $this->password = null;
16
        $this->administrativeCode = '08082650';
17
        $this->contract = '9912208555';
18
        $this->postCard = '0057018901';
19
        $this->serviceCode = '41076';
20
        $this->direction = '36';
21
22
        $this->setSender(Sender::create([
23
            'name' => 'Empresa Ltda',
24
            'street' => 'Avenida Central',
25
            'number' => '2370',
26
            'complement' => 'sala 1205,12° andar',
27
            'district' => 'Centro',
28
            'cep' => '70002900',
29
            'city' => 'Brasília',
30
            'state' => 'PR',
31
            'phone' => '6112345008',
32
            'mail' => '[email protected]',
33
        ]));
34
    }
35
}
36