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

ReadModelField::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 1
rs 10
c 0
b 0
f 0
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