Completed
Push — EZP-31460 ( fb49b1...efa331 )
by
unknown
19:23 queued 11s
created

RemoteIdentifierMapper::canMap()   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 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
namespace eZ\Publish\Core\Search\Common\FieldValueMapper;
8
9
use eZ\Publish\SPI\Search\Field;
10
use eZ\Publish\SPI\Search\FieldType\RemoteIdentifierField;
11
12
/**
13
 * Common remote ID field value mapper.
14
 *
15
 * Currently behaves in the same way as StringMapper.
16
 *
17
 * @internal for internal use by Search engine field value mapper
18
 */
19
class RemoteIdentifierMapper extends StringMapper
20
{
21
    public function canMap(Field $field): bool
22
    {
23
        return $field->type instanceof RemoteIdentifierField;
24
    }
25
}
26