Passed
Push — develop ( 57a649...a01996 )
by Armando
33:04 queued 27:25
created

InaccessibleMessage::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Longman\TelegramBot\Entities\Message;
4
5
use Longman\TelegramBot\Entities\Chat;
6
use Longman\TelegramBot\Entities\Entity;
7
8
/**
9
 * @method Chat getChat()      Chat the message belonged to
10
 * @method int  getMessageId() Unique message identifier inside the chat
11
 * @method int  getDate()      Always 0. The field can be used to differentiate regular and inaccessible messages.
12
 */
13
class InaccessibleMessage extends Entity implements MaybeInaccessibleMessage
14
{
15
    protected function subEntities(): array
16
    {
17
        return [
18
            'chat' => Chat::class,
19
        ];
20
    }
21
}
22