Completed
Push — master ( aab78b...ac108f )
by Alexpts
02:15
created

AbstractPoint   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 3
1
<?php
2
namespace PTS\Routing\Point;
3
4
abstract class AbstractPoint
5
{
6
    /**
7
     * @param array $params
8
     */
9 5
    public function __construct(array $params = [])
10
    {
11 5
        foreach ($params as $name => $param) {
12 5
            if (property_exists($this, $name)) {
13 5
                $this->{$name} = $param;
14
            }
15
        }
16 5
    }
17
}
18