Completed
Push — master ( 98eac7...758f15 )
by Jacob
02:28
created

StorageMetadata::merge()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace As3\Modlr\Search\Elastic;
4
5
use As3\Modlr\Metadata\AttributeMetadata;
6
use As3\Modlr\Metadata\FieldMetadata;
7
use As3\Modlr\Metadata\Interfaces\MergeableInterface;
8
use As3\Modlr\Metadata\Interfaces\StorageLayerInterface;
9
10
/**
11
 * Defines the storage metadata for Elastic.
12
 *
13
 * @author Jacob Bare <[email protected]>
14
 */
15
class StorageMetadata implements StorageLayerInterface
16
{
17
    /**
18
     * @var string
19
     */
20
    public $clientKey;
21
22
    /**
23
     * @var string
24
     */
25
    public $index;
26
27
    /**
28
     * @var string
29
     */
30
    public $type;
31
32
    /**
33
     * Returns the client key for this search metadata.
34
     *
35
     * @return  string
36
     */
37
    public function getKey()
38
    {
39
        return $this->clientKey;
40
    }
41
42
    /**
43
     * {@inheritDoc}
44
     */
45
    public function merge(MergeableInterface $metadata)
46
    {
47
        return $this;
48
    }
49
}
50