Passed
Pull Request — develop (#1492)
by Rabie
07:07
created

PaidMediaVideo   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\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