FieldSchema   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 34
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getName() 0 4 1
A getType() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Ytake\KsqlClient\Entity;
5
6
/**
7
 * Class FieldSchema
8
 */
9
final class FieldSchema
10
{
11
    /** @var string */
12
    private $name;
13
14
    /** @var string */
15
    private $type;
16
17
    /**
18
     * @param string $name
19
     * @param string $type
20
     */
21
    public function __construct(string $name, string $type)
22
    {
23
        $this->name = $name;
24
        $this->type = $type;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getName(): string
31
    {
32
        return $this->name;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getType(): string
39
    {
40
        return $this->type;
41
    }
42
}
43