Passed
Pull Request — master (#48)
by Alex
03:09
created

ConcurrencyMode::getKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
6
namespace AlgoWeb\ODataMetadata\Enums;
7
8
/**
9
 * Class EdmConcurrencyMode.
10
 *
11
 * Enumerates the EDM property concurrency modes.
12
 *
13
 *
14
 * @package AlgoWeb\ODataMetadata\MetadataV3\Enums
15
 * @method static self None() Denotes a property that should be used for optimistic concurrency checks.
16
 * @method bool isNone()
17
 * @method static self Fixed() Denotes a property that should not be used for optimistic concurrency checks.
18
 * @method bool isFixed()
19
 */
20
class ConcurrencyMode extends Enum
21
{
22
    protected const None  = 0;
23
    protected const Fixed = 1;
24
25
    /**
26
     * Returns the enum key (i.e. the constant name).
27
     *
28
     * @return string
29
     */
30
    public function getKey()
31
    {
32
        return strval(parent::getKey());
33
    }
34
}
35