Passed
Pull Request — develop (#1459)
by Armando
28:33 queued 18:33
created

InaccessibleMessage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
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