GeneratedTable::getNamespace()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php declare(strict_types=1);
2
3
namespace WyriHaximus\React\Cake\Orm;
4
5
final class GeneratedTable
6
{
7
    /**
8
     * @var string
9
     */
10
    private $namespace;
11
12
    /**
13
     * @var string
14
     */
15
    private $className;
16
17
    /**
18
     * @param string $namespace
19
     * @param string $className
20
     */
21 2
    public function __construct($namespace, $className)
22
    {
23 2
        $this->namespace = $namespace;
24 2
        $this->className = $className;
25 2
    }
26
27
    /**
28
     * @return string
29
     */
30 1
    public function getNamespace()
31
    {
32 1
        return $this->namespace;
33
    }
34
35
    /**
36
     * @return string
37
     */
38 2
    public function getClassName()
39
    {
40 2
        return $this->className;
41
    }
42
43
    /**
44
     * @return string
45
     */
46 1
    public function getFQCN()
47
    {
48 1
        return $this->namespace . '\\' . $this->className;
49
    }
50
}
51