Passed
Push — master ( 7815e3...d45a7a )
by Pieter
04:53
created

ReadModelField   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 1 1
A getDataType() 0 1 1
A __construct() 0 4 1
1
<?php
2
3
namespace Avoran\Rapido\ReadModel;
4
5
use Avoran\Rapido\ReadModel\DataType\FieldDataType;
6
7
final class ReadModelField
8
{
9
    private $id;
10
    public function getId() { return $this->id; }
11
12
    private $dataType;
13
    public function getDataType() { return $this->dataType; }
14
15
    public function __construct($id, FieldDataType $dataType)
16
    {
17
        $this->id = $id;
18
        $this->dataType = $dataType;
19
    }
20
}
21