StaticCreateIgnoreCaseTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 14
c 0
b 0
f 0
rs 10
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
1
<?php
2
namespace ConstructNamedParameters\Traits;
3
4
trait StaticCreateIgnoreCaseTrait
5
{
6
    /**
7
     * Create an instance of the current object based on named parameters
8
     *
9
     * @param array $values
10
     *
11
     * @return $this
12
     */
13
    public static function create(array $values)
14
    {
15
        return construct_named_parameters_uncase(static::class, $values);
16
    }
17
}
18