Passed
Push — master ( 61095c...6a7277 )
by Tomáš
40:59
created

CustomerData::setBankAccountName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Inspirum\Balikobot\Model\PackageData\Package;
6
7
use Inspirum\Balikobot\Definitions\Attribute;
8
9
trait CustomerData
10
{
11 20
    public function setRecName(string $name): void
12
    {
13 20
        $this->offsetSet(Attribute::REC_NAME, $name);
0 ignored issues
show
Bug introduced by
It seems like offsetSet() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

13
        $this->/** @scrutinizer ignore-call */ 
14
               offsetSet(Attribute::REC_NAME, $name);
Loading history...
14
    }
15
16 1
    public function setRecFirm(string $firm): void
17
    {
18 1
        $this->offsetSet(Attribute::REC_FIRM, $firm);
19
    }
20
21 21
    public function setRecStreet(string $street): void
22
    {
23 21
        $this->offsetSet(Attribute::REC_STREET, $street);
24
    }
25
26 1
    public function setRecStreetAppend(string $street): void
27
    {
28 1
        $this->offsetSet(Attribute::REC_STREET_APPEND, $street);
29
    }
30
31 20
    public function setRecCity(string $city): void
32
    {
33 20
        $this->offsetSet(Attribute::REC_CITY, $city);
34
    }
35
36 21
    public function setRecZip(string $zip): void
37
    {
38 21
        $this->offsetSet(Attribute::REC_ZIP, $zip);
39
    }
40
41 1
    public function setRecRegion(string $recRegion): void
42
    {
43 1
        $this->offsetSet(Attribute::REC_REGION, $recRegion);
44
    }
45
46 21
    public function setRecCountry(string $country): void
47
    {
48 21
        $this->offsetSet(Attribute::REC_COUNTRY, $country);
49
    }
50
51 1
    public function setRecLocaleId(string $localeId): void
52
    {
53 1
        $this->offsetSet(Attribute::REC_LOCALE_ID, $localeId);
54
    }
55
56 20
    public function setRecEmail(string $email): void
57
    {
58 20
        $this->offsetSet(Attribute::REC_EMAIL, $email);
59
    }
60
61 20
    public function setRecPhone(string $phone): void
62
    {
63 20
        $this->offsetSet(Attribute::REC_PHONE, $phone);
64
    }
65
66 1
    public function setBankAccountNumber(string $bankAccountNumber): void
67
    {
68 1
        $this->offsetSet(Attribute::BANK_ACCOUNT_NUMBER, $bankAccountNumber);
69
    }
70
71 1
    public function setBankCode(string $bankCode): void
72
    {
73 1
        $this->offsetSet(Attribute::BANK_CODE, $bankCode);
74
    }
75
76 1
    public function setBankName(string $bankName): void
77
    {
78 1
        $this->offsetSet(Attribute::BANK_NAME, $bankName);
79
    }
80
81 1
    public function setBankAccountHolder(string $bankAccountHolder): void
82
    {
83 1
        $this->offsetSet(Attribute::BANK_ACCOUNT_HOLDER, $bankAccountHolder);
84
    }
85
86 1
    public function setBankAccountName(string $bankAccountName): void
87
    {
88 1
        $this->offsetSet(Attribute::BANK_ACCOUNT_NAME, $bankAccountName);
89
    }
90
91 1
    public function setRecNamePatronymum(string $recNamePatronymum): void
92
    {
93 1
        $this->offsetSet(Attribute::REC_NAME_PATRONYMUM, $recNamePatronymum);
94
    }
95
96 1
    public function setRecId(string $id): void
97
    {
98 1
        $this->offsetSet(Attribute::REC_ID, $id);
99
    }
100
101
    public function setPayer(string $payer): void
102
    {
103
        $this->offsetSet(Attribute::PAYER, $payer);
104
    }
105
}
106