Test Setup Failed
Push — master ( c81089...298000 )
by DeGracia
02:03
created

Clear   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 33
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;
4
5
use DeGraciaMathieu\Clike\Lines;
6
use DeGraciaMathieu\Clike\Contracts;
7
8
class Clear implements Contracts\Command {
9
10
    public function description() :Contracts\Line
11
    {
12
        return new Lines\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() :void
26
    {
27
        // foo
28
    }
29
30
    /**
31
     * [output description]
32
     * @return \DeGraciaMathieu\Clike\Contracts\Line[]
33
     */
34
    public function output() :array
35
    {
36
        return [
37
            new Lines\Info('Output text...'),
38
        ];
39
    }
40
}