EntityFieldDefinition   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 38
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getTypeName() 0 4 1
A getName() 0 4 1
A getFieldName() 0 4 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Agares\MicroORM;
5
6
final 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
}