Failed Conditions
Pull Request — master (#28)
by Dallas
06:04
created

FunctionSetBuilder::__call()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 2
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Umbrellio\Postgres\Schema\Builders\Routines\Functions;
6
7
use Illuminate\Support\Fluent;
8
use Umbrellio\Postgres\Schema\Builders\Routines\CreateFunctionBuilder;
9
10
class FunctionSetBuilder extends Fluent
11
{
12
    private $builder;
13
14
    public function __construct(CreateFunctionBuilder $builder, $attributes = [])
15
    {
16
        $this->builder = $builder;
17
18
        parent::__construct($attributes);
19
    }
20
21
    public function __call($method, $parameters)
22
    {
23
        parent::__call($method, $parameters);
24
25
        return $this->builder;
26
    }
27
}
28