Clear   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A description() 0 4 1
A authorized() 0 4 1
A binding() 0 4 1
A process() 0 4 1
A output() 0 6 1
1
<?php
2
3
namespace DeGraciaMathieu\Clike\Tests;
4
5
use DeGraciaMathieu\Clike\Lines;
6
use DeGraciaMathieu\Clike\Contracts;
7
8
class Clear implements Contracts\Command {
9
10
    public function description() :string
11
    {
12
        return 'description';
13
    }
14
15
    public function authorized() :bool
16
    {
17
        return true;
18
    }
19
20
    public function binding() :string
21
    {
22
        return '/clear';
23
    }
24
25
    public function process()
26
    {
27
        //
28
    }
29
30
    public function output() :array
31
    {
32
        return [
33
            new Lines\Info('Output text...'),
34
        ];
35
    }
36
}