ArrayOfLabeledPrice   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 14
ccs 0
cts 8
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromResponse() 0 8 2
1
<?php
2
3
namespace TelegramBot\Api\Types\Payments;
4
5
abstract class ArrayOfLabeledPrice
6
{
7
    /**
8
     * @param array $data
9
     * @return LabeledPrice[]
10
     */
11
    public static function fromResponse($data)
12
    {
13
        $arrayOfLabeledPrice = [];
14
        foreach ($data as $labeledPrice) {
15
            $arrayOfLabeledPrice[] = LabeledPrice::fromResponse($labeledPrice);
16
        }
17
18
        return $arrayOfLabeledPrice;
19
    }
20
}
21