Passed
Push — master ( e7bef7...3228c5 )
by Vladimir
03:06
created

Image   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 12
dl 0
loc 22
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
namespace GraphQL\Examples\Blog\Data;
3
4
use GraphQL\Utils\Utils;
5
6
class Image
7
{
8
    const TYPE_USERPIC = 'userpic';
9
10
    const SIZE_ICON = 'icon';
11
    const SIZE_SMALL = 'small';
12
    const SIZE_MEDIUM = 'medium';
13
    const SIZE_ORIGINAL = 'original';
14
15
    public $id;
16
17
    public $type;
18
19
    public $size;
20
21
    public $width;
22
23
    public $height;
24
25
    public function __construct(array $data)
26
    {
27
        Utils::assign($this, $data);
28
    }
29
}
30