InlineQueryResult   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 46
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setType() 0 3 1
A setId() 0 3 1
A getType() 0 3 1
A getId() 0 3 1
1
<?php
2
3
namespace Zanzara\Telegram\Type\InlineQueryResult;
4
5
abstract class InlineQueryResult
6
{
7
    /**
8
     * Type of the result, must be article
9
     *
10
     * @var string
11
     */
12
    private $type;
13
14
    /**
15
     * Unique identifier for this result, 1-64 Bytes
16
     *
17
     * @var string
18
     */
19
    private $id;
20
21
    /**
22
     * @return string
23
     */
24
    public function getType(): string
25
    {
26
        return $this->type;
27
    }
28
29
    /**
30
     * @param string $type
31
     */
32
    public function setType(string $type): void
33
    {
34
        $this->type = $type;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getId(): string
41
    {
42
        return $this->id;
43
    }
44
45
    /**
46
     * @param string $id
47
     */
48
    public function setId(string $id): void
49
    {
50
        $this->id = $id;
51
    }
52
53
}