Completed
Push — master ( 9b6af1...13b463 )
by Paweł
02:48
created

EntityFieldDefinition::getFieldName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
declare(strict_types = 1);
3
4
namespace Agares\MicroORM;
5
6
class EntityFieldDefinition
7
{
8
    /**
9
     * @var string
10
     */
11
    private $typeName;
12
13
    /**
14
     * @var string
15
     */
16
    private $name;
17
    /**
18
     * @var string
19
     */
20
    private $fieldName;
21
22
    public function __construct(string $fieldName, string $name, string $typeName)
23
    {
24
        $this->name = $name;
25
        $this->typeName = $typeName;
26
        $this->fieldName = $fieldName;
27
    }
28
29
    public function getTypeName() : string
30
    {
31
        return $this->typeName;
32
    }
33
34
    public function getName() : string
35
    {
36
        return $this->name;
37
    }
38
39
    public function getFieldName() : string
40
    {
41
        return $this->fieldName;
42
    }
43
}