Completed
Push — master ( b9fce4...98eb76 )
by Max
01:21
created

DehydrateIterator::current()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 *  @copyright (c) 2020 Mendel <[email protected]>
5
 *  @license see license.txt
6
 */
7
8
namespace drycart\data;
9
10
/**
11
 * Description of DehydrateIterator
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