| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 |
||
| 44 | } |
||
| 45 | } |
||
| 46 |