Completed
Push — master ( e76a48...92aedf )
by Gusev
19:49 queued 15:32
created

AbstractInlineQueryResult::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace TelegramBot\Api\Types\Inline;
4
5
use TelegramBot\Api\BaseType;
6
7
/**
8
 * Class AbstractInlineQueryResult
9
 * Abstract class for representing one result of an inline query
10
 *
11
 * @package TelegramBot\Api\Types
12
 */
13
class AbstractInlineQueryResult extends BaseType
14
{
15
    /**
16
     * Type of the result, must be one of: article, photo, gif, mpeg4_gif, video
17
     *
18
     * @var string
19
     */
20
    protected $type;
21
22
    /**
23
     * @var string
24
     */
25
    protected $id;
26
27
    /**
28
     * Title for the result
29
     *
30
     * @var string
31
     */
32
    protected $title;
33
34
    /**
35
     * @return string
36
     */
37
    public function getType()
38
    {
39
        return $this->type;
40
    }
41
42
    /**
43
     * @param string $type
44
     */
45
    public function setType($type)
46
    {
47
        $this->type = $type;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getId()
54
    {
55
        return $this->id;
56
    }
57
58
    /**
59
     * @param string $id
60
     */
61
    public function setId($id)
62
    {
63
        $this->id = $id;
64
    }
65
66
    /**
67
     * @return string
68
     */
69
    public function getTitle()
70
    {
71
        return $this->title;
72
    }
73
74
    /**
75
     * @param string $title
76
     */
77
    public function setTitle($title)
78
    {
79
        $this->title = $title;
80
    }
81
}