SenCustomerData::setSenName()   A
last analyzed

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 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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 SenCustomerData
10
{
11 4
    public function setSenName(string $name): void
12
    {
13 4
        $this->offsetSet(Attribute::SEN_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::SEN_NAME, $name);
Loading history...
14
    }
15
16 1
    public function setSenFirm(string $firm): void
17
    {
18 1
        $this->offsetSet(Attribute::SEN_FIRM, $firm);
19
    }
20
21 4
    public function setSenStreet(string $street): void
22
    {
23 4
        $this->offsetSet(Attribute::SEN_STREET, $street);
24
    }
25
26 1
    public function setSenStreetAppend(string $street): void
27
    {
28 1
        $this->offsetSet(Attribute::SEN_STREET_APPEND, $street);
29
    }
30
31 5
    public function setSenCity(string $city): void
32
    {
33 5
        $this->offsetSet(Attribute::SEN_CITY, $city);
34
    }
35
36 5
    public function setSenZip(string $zip): void
37
    {
38 5
        $this->offsetSet(Attribute::SEN_ZIP, $zip);
39
    }
40
41 5
    public function setSenCountry(string $country): void
42
    {
43 5
        $this->offsetSet(Attribute::SEN_COUNTRY, $country);
44
    }
45
46 4
    public function setSenEmail(string $email): void
47
    {
48 4
        $this->offsetSet(Attribute::SEN_EMAIL, $email);
49
    }
50
51 5
    public function setSenPhone(string $phone): void
52
    {
53 5
        $this->offsetSet(Attribute::SEN_PHONE, $phone);
54
    }
55
}
56