Completed
Push — ezp_30981_tree_walking ( b1bcb5 )
by
unknown
13:48
created

SearchHitIterator::current()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace eZ\Publish\Core\Repository\TreeAccessor;
6
7
use eZ\Publish\API\Repository\Values\Content\Search\SearchResult;
8
use IteratorIterator;
9
10
final class SearchHitIterator extends IteratorIterator
11
{
12
    public function __construct(SearchResult $iterator)
13
    {
14
        parent::__construct($iterator);
15
    }
16
17
    public function current()
18
    {
19
        return parent::current()->valueObject;
20
    }
21
}
22
23
24