ExcludeBuilder::with()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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