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

Image::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 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