Completed
Pull Request — master (#489)
by Milroy
02:55
created

Person::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php namespace League\Fractal\Test\Dto;
2
3
class Person
4
{
5
    public $name;
6
    public $meta;
7
8
    public function __construct($name, array $meta = null)
9
    {
10
        $this->name = $name;
11
        $this->meta = $meta;
12
    }
13
14
    public static function make($name, array $meta = null)
15
    {
16
        return new self($name, $meta);
17
    }
18
}
19