MemberMergeFields   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 40
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setFName() 0 4 1
A getLName() 0 3 1
A setLName() 0 4 1
A getFName() 0 3 1
A jsonSerialize() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AlexCk\MailchimpBundle\Model\MailChimp;
6
7
use JsonSerializable;
8
9
class MemberMergeFields implements JsonSerializable
10
{
11
    /**
12
     * @var string
13
     */
14
    private $fName;
15
16
    /**
17
     * @var string
18
     */
19
    private $lName;
20
21
    public function jsonSerialize()
22
    {
23
        return [
24
            'FNAME' => $this->getFName(),
25
            'LNAME' => $this->getLName()
26
        ];
27
    }
28
29
    public function getFName(): string
30
    {
31
        return $this->fName;
32
    }
33
34
    public function setFName(string $fName): MemberMergeFields
35
    {
36
        $this->fName = $fName;
37
        return $this;
38
    }
39
40
    public function getLName(): string
41
    {
42
        return $this->lName;
43
    }
44
45
    public function setLName(string $lName): MemberMergeFields
46
    {
47
        $this->lName = $lName;
48
        return $this;
49
    }
50
}
51