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

RemoteIdentifierMapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

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