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

FunctionSetBuilder   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 1
b 0
f 0
dl 0
loc 16
ccs 0
cts 6
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __call() 0 5 1
A __construct() 0 5 1
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