Completed
Push — master ( 3a4c95...865c46 )
by Andrii
02:08
created

ModifierFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __call() 0 6 1
1
<?php
2
/**
3
 * PHP Billing Library
4
 *
5
 * @link      https://github.com/hiqdev/php-billing
6
 * @package   php-billing
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\php\billing\charge\modifiers;
12
13
/**
14
 * Modifier Factory.
15
 *
16
 * @author Andrii Vasyliev <[email protected]>
17
 */
18
class ModifierFactory
19
{
20 2
    public function __call($name, $args)
21
    {
22 2
        $res = new Modifier();
23
24 2
        return call_user_func_array([$res, $name], $args);
25
    }
26
}
27