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

Clear::binding()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
}