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

SearchHitIterator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A current() 0 4 1
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