ShortSentMessage   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 34
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setId() 0 5 1
A getId() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zored\Telegram\Entity\Bot\Update;
6
7
use JMS\Serializer\Annotation as Serializer;
8
use Zored\Telegram\Entity\General\AbstractEntity;
9
10
class ShortSentMessage extends AbstractEntity
11
{
12
    private const SAMPLE = <<<JSON
13
{
14
  "_": "updateShortSentMessage",
15
  "out": true,
16
  "id": 123,
17
  "pts": 124,
18
  "pts_count": 1,
19
  "date": 1521034110,
20
  "media": {
21
	"_": "messageMediaEmpty"
22
  },
23
  "entities": []
24
}
25
JSON;
26
27
    /**
28
     * @Serializer\Type("integer")
29
     *
30
     * @var int
31
     */
32
    private $id;
33
34
    public function getId(): int
35
    {
36
        return $this->id;
37
    }
38
39
    public function setId(int $id): self
40
    {
41
        $this->id = $id;
42
43
        return $this;
44
    }
45
}
46