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

NewableTrait::new_()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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