Passed
Push — master ( 60319d...b48e8d )
by Daniele
08:21
created

NewableTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A new_() 0 4 1
1
<?php
2
3
namespace FluidXml;
4
5
trait NewableTrait
6
{
7
        // This method should be called 'new',
8
        // but for compatibility with PHP 5.6
9
        // it is shadowed by the __callStatic() method.
10
        public static function new_(...$arguments)
11
        {
12
                return new static(...$arguments);
13
        }
14
}
15