Schema::getDefinition()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace PSB\Persistence\Doctrine1;
3
4
5
class Schema
6
{
7
    /**
8
     * @var string
9
     */
10
    private $tableName;
11
12
    /**
13
     * @var array
14
     */
15
    private $definition;
16
17
    /**
18
     * @var array
19
     */
20
    private $options;
21
22
    /**
23
     * @param string      $tableName
24
     * @param array $definition
25
     * @param array $options
26
     */
27 2
    public function __construct($tableName, array $definition, array $options = [])
28
    {
29 2
        $this->tableName = $tableName;
30 2
        $this->definition = $definition;
31 2
        $this->options = $options;
32 2
    }
33
34
    /**
35
     * @return string
36
     */
37 2
    public function getTableName()
38
    {
39 2
        return $this->tableName;
40
    }
41
42
    /**
43
     * @return array
44
     */
45 2
    public function getDefinition()
46
    {
47 2
        return $this->definition;
48
    }
49
50
    /**
51
     * @return array
52
     */
53 2
    public function getOptions()
54
    {
55 2
        return $this->options;
56
    }
57
}
58