Completed
Push — master ( 98eb76...c74b62 )
by Max
01:10
created

DehydrateIterator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A current() 0 5 1
1
<?php
2
3
/*
4
 *  @copyright (c) 2020 Mendel <[email protected]>
5
 *  @license see license.txt
6
 */
7
8
namespace drycart\data\Iterator;
9
10
/**
11
 * Iterator for dehydrate data from other iterator
12
 *
13
 * @author mendel
14
 */
15
class DehydrateIterator extends \IteratorIterator
16
{
17
    /**
18
     * return dehydrated object
19
     * @return array
20
     */
21
    public function current()
22
    {
23
        $model = parent::current();
24
        return $model->dehydrate();
25
    }
26
}
27