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

Person   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A make() 0 4 1
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