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

PaidMediaInfo::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;
4
5
use Longman\TelegramBot\Entities\PaidMedia\PaidMedia;
6
7
/**
8
 * Class PaidMediaInfo
9
 *
10
 * Describes the paid media.
11
 *
12
 * @link https://core.telegram.org/bots/api#paidmediainfo
13
 *
14
 * @method int getStarCount() The number of Telegram Stars that must be paid to buy access to the media
15
 * @method PaidMedia[] getPaidMedia() The paid media
16
 *
17
 * @method $this setStarCount(int $starCount) The number of Telegram Stars that must be paid to buy access to the media
18
 * @method $this setPaidMedia(PaidMedia[] $paidMedia) The paid media
19
 */
20
class PaidMediaInfo extends Entity
21
{
22
    protected function subEntities(): array
23
    {
24
        return [
25
            'paid_media' => [PaidMedia::class],
26
        ];
27
    }
28
}
29