Message::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: akeinhell
5
 * Date: 29.06.16
6
 * Time: 14:15
7
 */
8
9
namespace Telegram\Types;
10
11
12
use Carbon\Carbon;
13
use Telegram\Base\BaseType;
14
15
/**
16
 * Class Message
17
 * @method int getUpdateId
18
 * @method User getFrom
19
 * @method Carbon getDate
20
 * @method string getText
21
 * @method User getForwardFrom
22
 * @method Chat getForwardFromChat
23
 * @method Carbon getForwardDate
24
 * @method Carbon getEditDate
25
 * @method Message getReplyToMessage
26
 *
27
 * @package Telegram\Types
28
 */
29
class Message extends BaseType
30
{
31
    protected $map = [
32
        'from'        => User::class,
33
        'chat'        => Chat::class,
34
        'date'        => [Carbon::class, 'createFromTimestamp'],
35
        'forwardDate' => [Carbon::class, 'createFromTimestamp'],
36
    ];
37
38 4
    public function __construct($attributes)
39
    {
40 4
        parent::__construct($attributes);
41 4
    }
42
//
43
//    /**
44
//     * @var MessageEntity[]
45
//     */
46
//    protected $entities;
47
//
48
//    /**
49
//     * @var Audio
50
//     */
51
//    protected $audio;
52
//
53
//    /**
54
//     * @var Document
55
//     */
56
//    protected $document;
57
//
58
//    /**
59
//     * @var PhotoSize[]
60
//     */
61
//    protected $photo;
62
//
63
//    /**
64
//     * @var Sticker
65
//     */
66
//    protected $sticker;
67
//
68
//    /**
69
//     * @var Video
70
//     */
71
//    protected $video;
72
//
73
//    /**
74
//     * @var Voice
75
//     */
76
//    protected $voice;
77
//
78
//    /**
79
//     * @var string
80
//     */
81
//    protected $caption;
82
//
83
//    /**
84
//     * @var Contact
85
//     */
86
//    protected $contact;
87
//
88
//    /**
89
//     * @var Location
90
//     */
91
//    protected $location;
92
//
93
//    /**
94
//     * @var Venue
95
//     */
96
//    protected $venue;
97
//
98
//    /**
99
//     * @var User
100
//     */
101
//    protected $newChatMember;
102
//
103
//    /**
104
//     * @var User
105
//     */
106
//    protected $leftChatMember;
107
//
108
//    /**
109
//     * @var string
110
//     */
111
//    protected $newChatTitle;
112
//
113
//    /**
114
//     * @var PhotoSize[]
115
//     */
116
//    protected $newChatPhoto;
117
//
118
//    /**
119
//     * @var boolean
120
//     */
121
//    protected $deleteChatPhoto;
122
//
123
//    /**
124
//     * @var boolean
125
//     */
126
//    protected $groupChatCreated;
127
//
128
//    /**
129
//     * @var boolean
130
//     */
131
//    protected $superGroupChatCreated;
132
//
133
//    /**
134
//     * @var boolean
135
//     */
136
//    protected $channelChatCreated;
137
//
138
//    /**
139
//     * @var int
140
//     */
141
//    protected $migrateToChatId;
142
//
143
//    /**
144
//     * @var int
145
//     */
146
//    protected $migrateFromChatId;
147
//
148
//    /**
149
//     * @var Message
150
//     */
151
//    protected $pinnedMessage;
152
153
154
}