BaseCountryParser   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A _setError() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Carp Cai
5
 * Date: 2018/12/1
6
 * Time: 10:23 PM
7
 */
8
9
namespace CarpCai\AddressParser\Countries;
10
11
class BaseCountryParser
12
{
13
    /**
14
     * CarpCai <2018/12/2 7:57 PM>
15
     */
16
    protected function _setError(&$addressStruct, $error_message)
17
    {
18
        $addressStruct->error_code = -1;
19
        $addressStruct->error_message = $error_message;
20
    }
21
}