Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class UniqueByOperation implements FullSetOperation |
||
18 | { |
||
19 | /** @var callable|UnaryFunction|BinaryFunction */ |
||
20 | protected $mapper; |
||
21 | /** @var bool */ |
||
22 | private $strict; |
||
23 | |||
24 | /** |
||
25 | * @param callable|UnaryFunction|BinaryFunction $mapper Mapper function |
||
26 | * @param bool $strict Do strict comparison |
||
27 | */ |
||
28 | 18 | public function __construct($mapper, $strict) |
|
32 | 18 | } |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 18 | public function apply(\Iterator $set) |
|
56 |