Passed
Push — main ( 8c6c55...1af2d8 )
by Miaad
12:23 queued 14s
created

maybeInaccessibleMessage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 2
1
<?php
2
3
namespace BPT\types;
4
use stdClass;
5
6
class maybeInaccessibleMessage extends message {
7
    /** Chat the message belonged to */
8
    public chat $chat;
9
10
    /** Unique message identifier inside the chat */
11
    public int $message_id;
12
    /**
13
     * Date the message was sent in Unix time. It is always a positive number, representing a valid date.
14
     * Always 0 in inaccessible messages.
15
     */
16
    public int $date;
17
18
19
    public function __construct(stdClass|null $object = null) {
20
        if ($object != null) {
21
            parent::__construct($object);
22
        }
23
    }
24
}