MemberMergeFields::getLName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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