| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 68.75% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Result implements ResultInterface |
||
| 15 | { |
||
| 16 | protected $data; |
||
| 17 | |||
| 18 | protected $type = \PDO::FETCH_ASSOC; |
||
| 19 | |||
| 20 | 6 | public function __construct($data) |
|
| 21 | { |
||
| 22 | 6 | $this->data = $data; |
|
| 23 | 6 | } |
|
| 24 | |||
| 25 | public function type($type) |
||
| 26 | { |
||
| 27 | $this->type = $type; |
||
| 28 | |||
| 29 | return $this; |
||
| 30 | } |
||
| 31 | |||
| 32 | 3 | public function first() |
|
| 40 | } |
||
| 41 | |||
| 42 | 3 | public function items() |
|
| 50 | } |
||
| 51 | } |
||
| 52 |