Completed
Branch feature/pre-split (9269d3)
by Anton
05:27
created

TransactionalCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 4 1
A callEvent() 0 4 1
1
<?php
2
/**
3
 * components
4
 *
5
 * @author    Wolfy-J
6
 */
7
namespace Spiral\ORM\Commands;
8
9
use Spiral\ORM\CommandInterface;
10
use Spiral\ORM\Transaction;
11
12
/**
13
 * Command to handle multiple inner commands.
14
 */
15
class TransactionalCommand extends Transaction implements CommandInterface
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: complete, rollBack
Loading history...
16
{
17
    /**
18
     * Execute command = push transaction.
19
     */
20
    public function execute()
21
    {
22
        $this->run();
23
    }
24
25
    public function callEvent(int $event)
0 ignored issues
show
Unused Code introduced by
The parameter $event is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
26
    {
27
        // TODO: Implement setState() method.
28
    }
29
}