Completed
Push — master ( 0e58b8...91dadc )
by Gusev
02:46
created

ArrayOfMessageEntity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 12
ccs 0
cts 8
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromResponse() 0 9 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: iGusev
5
 * Date: 13/04/16
6
 * Time: 04:16
7
 */
8
9
namespace TelegramBot\Api\Types;
10
11
12
abstract class ArrayOfMessageEntity
13
{
14
    public static function fromResponse($data)
15
    {
16
        $arrayOfMessageEntity = [];
17
        foreach ($data as $messageEntity) {
18
            $arrayOfMessageEntity[] = MessageEntity::fromResponse($messageEntity);
19
        }
20
21
        return $arrayOfMessageEntity;
22
    }
23
}
24