EzPlatformObject   A
last analyzed

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
/**
4
 * This file is part of Transfer.
5
 *
6
 * For the full copyright and license information, please view the LICENSE file located
7
 * in the root directory.
8
 */
9
10
namespace Transfer\EzPlatform\Repository\Values;
11
12
use Transfer\Data\ValueObject;
13
use Transfer\EzPlatform\Repository\Values\Action\ActionInterface;
14
use Transfer\EzPlatform\Repository\Values\Action\Enum\Action;
15
16
abstract class EzPlatformObject extends ValueObject implements ActionInterface
17
{
18
    /**
19
     * {@inheritdoc}
20 31
     */
21
    public function getAction()
22 31
    {
23
        return $this->getProperty('action') ?: Action::CREATEORUPDATE;
24
    }
25
}
26