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

AbstractInlineQueryResult   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 69
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 6
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 69
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A setType() 0 4 1
A getId() 0 4 1
A setId() 0 4 1
A getTitle() 0 4 1
A setTitle() 0 4 1
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
}