Table   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 1
cbo 3
dl 0
loc 26
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 6 1
A schema() 0 6 1
1
<?php
2
3
namespace LaravelDoctrine\Fluent\Builders;
4
5
class Table extends AbstractBuilder
6
{
7
    /**
8
     * @param string $name
9
     *
10
     * @return $this
11
     */
12 3
    public function setName($name)
13
    {
14 3
        $this->builder->setTable($name);
15
16 3
        return $this;
17
    }
18
19
    /**
20
     * @param string $schema
21
     *
22
     * @return $this
23
     */
24 1
    public function schema($schema)
25
    {
26 1
        $this->builder->getClassMetadata()->setPrimaryTable(['schema' => $schema]);
27
28 1
        return $this;
29
    }
30
}
31