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

ModifierFactory::__call()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 1
b 0
f 1
cc 1
eloc 3
nc 1
nop 2
crap 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