| 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) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | 18 | public function apply(\Iterator $set) |
|
| 55 | } |
||
| 56 |