Completed
Push — develop ( f876c4...3b7fce )
by
unknown
10:26
created

KeyResourceIdentifier::fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 7
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 7
loc 7
ccs 0
cts 7
cp 0
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
crap 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A KeyResourceIdentifier::getId() 0 4 1
1
<?php
2
/**
3
 * @author @ct-jensschulze <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Model\Common;
7
8
/**
9
 * @package Commercetools\Core\Model\Common
10
 *
11
 * @method string getTypeId()
12
 * @method KeyResourceIdentifier setTypeId(string $typeId = null)
13
 * @method KeyResourceIdentifier setId(string $id = null)
14
 * @method string getKey()
15
 * @method KeyResourceIdentifier setKey(string $key = null)
16
 */
17
class KeyResourceIdentifier extends ResourceIdentifier
18
{
19
    /**
20
     * @internal
21
     * @return null
22
     */
23
    public function getId()
24
    {
25
        return null;
26
    }
27
28
    /**
29
     * @internal
30
     * @param null $id
31
     * @return $this
32
     */
33
    public function setId($id = null)
34
    {
35
        return $this;
36
    }
37
}
38