Passed
Push — bot-api-7.1 ( 25e39a )
by Armando
08:01
created

Story::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
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
 * Class Story
16
 *
17
 * @link https://core.telegram.org/bots/api#story
18
 *
19
 * @method Chat getChat() Chat that posted the story
20
 * @method int  getId()   Unique identifier for the story in the chat
21
 */
22
class Story extends Entity
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    protected function subEntities(): array
28
    {
29
        return [
30
            'chat' => Chat::class,
31
        ];
32
    }
33
}
34