Completed
Pull Request — 1.0 (#53)
by Harald
06:43
created

EzPlatformObject::getAction()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 2
eloc 2
nc 2
nop 0
crap 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