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

StarTransactions   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;
4
5
/**
6
 * Class StarTransactions
7
 *
8
 * Contains a list of Telegram Star transactions.
9
 *
10
 * @link https://core.telegram.org/bots/api#startransactions
11
 *
12
 * @method StarTransaction[] getTransactions() The list of transactions
13
 *
14
 * @method $this setTransactions(StarTransaction[] $transactions) The list of transactions
15
 */
16
class StarTransactions extends Entity
17
{
18
    protected function subEntities(): array
19
    {
20
        return [
21
            'transactions' => [StarTransaction::class],
22
        ];
23
    }
24
}
25