ExcludeBuilder   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 10
c 1
b 0
f 0
dl 0
loc 26
ccs 12
cts 12
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A method() 0 4 1
A with() 0 4 1
A using() 0 4 1
A tableSpace() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Umbrellio\Postgres\Schema\Builders\Constraints\Exclude;
6
7
use Illuminate\Support\Fluent;
8
use Umbrellio\Postgres\Schema\Builders\WhereBuilderTrait;
9
10
class ExcludeBuilder extends Fluent
11
{
12
    use WhereBuilderTrait;
13
14 2
    public function method(string $method): self
15
    {
16 2
        $this->attributes['method'] = $method;
17 2
        return $this;
18
    }
19
20 1
    public function with(string $storageParameter, $value): self
21
    {
22 1
        $this->attributes['with'][$storageParameter] = $value;
23 1
        return $this;
24
    }
25
26 1
    public function tableSpace(string $tableSpace): self
27
    {
28 1
        $this->attributes['tableSpace'] = $tableSpace;
29 1
        return $this;
30
    }
31
32 6
    public function using(string $excludeElement, string $operator): self
33
    {
34 6
        $this->attributes['using'][$excludeElement] = $operator;
35 6
        return $this;
36
    }
37
}
38