Type::getTable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
declare(strict_types=1);
3
4
namespace SlayerBirden\DataFlowServer\Pipeline\Entities;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @ORM\Entity
10
 * @ORM\Table(name="pipe_types")
11
 **/
12
class Type
13
{
14
    /**
15
     * @ORM\Id()
16
     * @ORM\Column(type="string")
17
     * @var string
18
     */
19
    private $code;
20
    /**
21
     * @ORM\Column(type="string")
22
     * @var string
23
     */
24
    private $table;
25
26
    /**
27
     * @return string
28
     */
29
    public function getCode(): string
30
    {
31
        return $this->code;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getTable(): string
38
    {
39
        return $this->table;
40
    }
41
42
    /**
43
     * @param string $table
44
     */
45
    public function setTable(string $table): void
46
    {
47
        $this->table = $table;
48
    }
49
}
50