DefaultRouter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
namespace Workana\AsyncJobs\Router;
3
4
use Bernard\Router\SimpleRouter;
5
use Workana\AsyncJobs\Executor\AsyncActionExecutor;
6
7
/**
8
 * Default execution router
9
 *
10
 * @author Carlos Frutos <[email protected]>
11
 */
12
class DefaultRouter extends SimpleRouter
13
{
14
    /**
15
     * Creates a new instance
16
     *
17
     * @param AsyncActionExecutor $asyncActionExecutor
18
     */
19
    public function __construct(
20
        AsyncActionExecutor $asyncActionExecutor
21
    ) {
22
        $this->add('AsyncAction', $asyncActionExecutor);
23
        $this->add('AsyncEvent', $asyncActionExecutor);
24
    }
25
}