Passed
Pull Request — develop (#1493)
by Rabie
06:35
created

PaidMediaVideo::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\PaidMedia;
4
5
use Longman\TelegramBot\Entities\PhotoSize;
6
use Longman\TelegramBot\Entities\Video;
7
8
/**
9
 * Class PaidMediaVideo
10
 *
11
 * The paid media is a video.
12
 *
13
 * @link https://core.telegram.org/bots/api#paidmediavideo
14
 *
15
 * @method string getType() Type of the paid media, always “video”
16
 * @method Video getVideo() The video
17
 *
18
 * @method $this setType(string $type) Type of the paid media, always “video”
19
 * @method $this setVideo(Video $video) The video
20
 */
21
class PaidMediaVideo extends PaidMedia
22
{
23
    protected function subEntities(): array
24
    {
25
        return [
26
            'video' => Video::class,
27
        ];
28
    }
29
}
30