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

PaidMediaPreview   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 3 1
1
<?php
2
3
namespace Longman\TelegramBot\Entities\PaidMedia;
4
5
use Longman\TelegramBot\Entities\PhotoSize;
6
7
/**
8
 * Class PaidMediaPreview
9
 *
10
 * The paid media is a preview of a media album.
11
 *
12
 * @link https://core.telegram.org/bots/api#paidmediapreview
13
 *
14
 * @method string getType() Type of the paid media, always “preview”
15
 * @method int getWidth() Optional. Media width as defined by the sender
16
 * @method int getHeight() Optional. Media height as defined by the sender
17
 * @method int getDuration() Optional. Duration of the media in seconds as defined by the sender
18
 *
19
 * @method $this setType(string $type) Type of the paid media, always “preview”
20
 * @method $this setWidth(int $width) Optional. Media width as defined by the sender
21
 * @method $this setHeight(int $height) Optional. Media height as defined by the sender
22
 * @method $this setDuration(int $duration) Optional. Duration of the media in seconds as defined by the sender
23
 */
24
class PaidMediaPreview extends PaidMedia
25
{
26
    protected function subEntities(): array
27
    {
28
        return [];
29
    }
30
}
31