Passed
Push — api-7.0 ( 7410c3...14c77e )
by Armando
28:03 queued 15:34
created

MessageOriginChat::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\MessageOrigin;
4
5
use Longman\TelegramBot\Entities\Chat;
6
use Longman\TelegramBot\Entities\Entity;
7
8
/**
9
 * The message was originally sent on behalf of a chat to a group chat.
10
 *
11
 * @link https://core.telegram.org/bots/api#messageoriginchat
12
 *
13
 * @method string getType()            Type of the message origin, always “chat”
14
 * @method int    getDate()            Date the message was sent originally in Unix time
15
 * @method Chat   getChat()            Chat that sent the message originally
16
 * @method string getAuthorSignature() Optional. For messages originally sent by an anonymous chat administrator, original message author signature
17
 */
18
class MessageOriginChat extends Entity implements MessageOrigin
19
{
20
    protected function subEntities(): array
21
    {
22
        return [
23
            'sender_chat' => Chat::class,
24
        ];
25
    }
26
27
}
28