Passed
Branch 1.0 (733517)
by Harald
06:28
created

EzPlatformObject   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAction() 0 4 2
1
<?php
2
3
namespace Transfer\EzPlatform\Repository\Values;
4
5
use Transfer\Data\ValueObject;
6
use Transfer\EzPlatform\Repository\Values\Action\ActionInterface;
7
use Transfer\EzPlatform\Repository\Values\Action\Enum\Action;
8
9
abstract class EzPlatformObject extends ValueObject implements ActionInterface
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14 22
    public function getAction()
15
    {
16 22
        return $this->getProperty('action') ?: Action::CREATEORUPDATE;
17
    }
18
}
19