StreamedRow::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Ytake\KsqlClient\Entity;
5
6
use Ytake\KsqlClient\GenericRow;
7
8
/**
9
 * Class StreamedRow
10
 */
11
class StreamedRow implements EntityInterface
12
{
13
    /** @var array */
14
    protected $rows = [];
15
16
    /**
17
     * StreamedRow constructor.
18
     *
19
     * @param array $rows
20
     */
21
    public function __construct(array $rows)
22
    {
23
        $this->rows = $rows;
24
    }
25
26
    /**
27
     * @return GenericRow
28
     */
29
    public function getRow(): GenericRow
30
    {
31
        return new GenericRow($this->rows);
32
    }
33
}
34