Passed
Push — dev_2x ( fb9ebe...5f9618 )
by Adrian
02:22
created

DetachEntities   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A onSuccess() 0 3 1
A run() 0 2 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Sirius\Orm\Action;
5
6
class DetachEntities extends AttachEntities
7
{
8
    public function run()
9
    {
10
        /**
11
         * @todo store current attribute values
12
         */
13
    }
14
15
    public function onSuccess()
16
    {
17
        $this->relation->detachEntities($this->nativeEntity, $this->foreignEntity);
18
    }
19
}
20