InputContactMessageContent::setFirstName()   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
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram\Type\Input;
6
7
/**
8
 * Represents the content of a contact message to be sent as the result of an inline query.
9
 *
10
 * More on https://core.telegram.org/bots/api#inputcontactmessagecontent
11
 */
12
class InputContactMessageContent extends InputMessageContent
13
{
14
15
    /**
16
     * Contact's phone number
17
     *
18
     * @var string
19
     */
20
    private $phone_number;
21
22
    /**
23
     * Contact's first name
24
     *
25
     * @var string
26
     */
27
    private $first_name;
28
29
    /**
30
     * Optional. Contact's last name
31
     *
32
     * @var string|null
33
     */
34
    private $last_name;
35
36
    /**
37
     * Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
38
     *
39
     * @var string|null
40
     */
41
    private $vcard;
42
43
    /**
44
     * @return string
45
     */
46
    public function getPhoneNumber(): string
47
    {
48
        return $this->phone_number;
49
    }
50
51
    /**
52
     * @param string $phone_number
53
     */
54
    public function setPhoneNumber(string $phone_number): void
55
    {
56
        $this->phone_number = $phone_number;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getFirstName(): string
63
    {
64
        return $this->first_name;
65
    }
66
67
    /**
68
     * @param string $first_name
69
     */
70
    public function setFirstName(string $first_name): void
71
    {
72
        $this->first_name = $first_name;
73
    }
74
75
    /**
76
     * @return string|null
77
     */
78
    public function getLastName(): ?string
79
    {
80
        return $this->last_name;
81
    }
82
83
    /**
84
     * @param string|null $last_name
85
     */
86
    public function setLastName(?string $last_name): void
87
    {
88
        $this->last_name = $last_name;
89
    }
90
91
    /**
92
     * @return string|null
93
     */
94
    public function getVcard(): ?string
95
    {
96
        return $this->vcard;
97
    }
98
99
    /**
100
     * @param string|null $vcard
101
     */
102
    public function setVcard(?string $vcard): void
103
    {
104
        $this->vcard = $vcard;
105
    }
106
107
}