Completed
Branch add-test-cases (10aafb)
by Basenko
05:32
created

MakeSocketSupervisorConfig   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
1
<?php
2
3
namespace MadWeb\Initializer\Jobs\Supervisor;
4
5
class MakeSocketSupervisorConfig extends MakeSupervisorConfig
6
{
7
    protected $processName = 'socket';
8
9 6
    public function __construct(array $params = [], string $fileName = '', string $path = '/etc/supervisor/conf.d/')
10
    {
11 6
        $params = $params ?: [
12 6
            'command' => 'node ./node_modules/.bin/laravel-echo-server start',
13
        ];
14
15 6
        parent::__construct($params, $fileName, $path);
16 6
    }
17
}
18