Row   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 17
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __isset() 0 3 1
A __construct() 0 3 1
A getValue() 0 3 1
1
<?php
2
3
namespace kalanis\kw_connect\eloquent;
4
5
6
use ArrayIterator;
7
use kalanis\kw_connect\core\Interfaces\IRow;
8
9
10
/**
11
 * Class Row
12
 * @package kalanis\kw_connect\eloquent
13
 */
14
class Row implements IRow
15
{
16
    protected ArrayIterator $row;
17
18
    public function __construct(ArrayIterator $row)
19
    {
20
        $this->row = $row;
21
    }
22
23
    public function getValue($property)
24
    {
25
        return $this->row->offsetGet($property);
26
    }
27
28
    public function __isset($name)
29
    {
30
        return $this->row->offsetExists($name);
31
    }
32
}
33