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

ConcurrencyMode   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 4
dl 0
loc 13
rs 10
c 2
b 1
f 0
wmc 1

1 Method

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