PublicRuc   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
c 2
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Luilliarcec\LaravelEcuadorIdentification\Support\Identifications;
4
5
use Luilliarcec\LaravelEcuadorIdentification\Support\BaseIdentification;
6
7
class PublicRuc extends BaseIdentification
8
{
9
    public function __construct()
10
    {
11
        $this->lenght = 13;
12
        $this->billingCode = '04';
13
        $this->coefficients = [3, 2, 7, 6, 5, 4, 3, 2];
14
        $this->checkDigitPosition = 9;
15
        $this->thirdDigit = 6;
16
        $this->lastDigits = '0001';
17
    }
18
}
19