LockingMiddlewareUndoable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A executeRedo() 0 3 1
A executeUndo() 0 3 1
1
<?php
2
3
namespace Joselfonseca\LaravelTactician\Middleware;
4
5
use League\Tactician\Plugins\LockingMiddleware;
6
7
8
class LockingMiddlewareUndoable extends LockingMiddleware implements MiddlewareUndoable
9
{
10
    public function executeUndo($command, callable $next): void
11
    {
12
        $this->execute($command, $next);
13
    }
14
15
    public function executeRedo($command, callable $next):void
16
    {
17
        $this->execute($command, $next);
18
    }
19
}
20