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

PaidMediaPreview::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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