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

TextQuote::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
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities;
13
14
/**
15
 * This object contains information about the quoted part of a message that is replied to by the given message.
16
 *
17
 * @link https://core.telegram.org/bots/api#textquote
18
 *
19
 * @method string          getText()     Text of the quoted part of a message that is replied to by the given message
20
 * @method MessageEntity[] getEntities() Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.
21
 * @method int             getPosition() Approximate quote position in the original message in UTF-16 code units as specified by the sender
22
 * @method bool            getIsManual() Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.
23
 */
24
class TextQuote extends Entity
25
{
26
    /**
27
     * {@inheritdoc}
28
     */
29
    protected function subEntities(): array
30
    {
31
        return [
32
            'entities' => [MessageEntity::class],
33
        ];
34
    }
35
}
36