Test Failed
Pull Request — master (#250)
by
unknown
02:21
created

ArrayOfUser   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromResponse() 0 9 2
1
<?php
2
3
namespace TelegramBot\Api\Types;
4
5
abstract class ArrayOfUser
6
{
7
    public static function fromResponse($data)
8
    {
9
        $arrayOfUsers = [];
10
        foreach ($data as $user) {
11
            $arrayOfUsers[] = User::fromResponse($user);
12
        }
13
14
        return $arrayOfUsers;
15
    }
16
}
17