Completed
Push — master ( 199635...738ba0 )
by Dorian
01:26
created

NullUserInterface::listing()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 2
1
<?php declare(strict_types=1);
2
3
namespace App\UI;
4
5
final class NullUserInterface implements UserInterface
6
{
7
    /**
8
     * {@inheritdoc}
9
     */
10
    public function write($messages, bool $newLine = false): void
11
    {
12
    }
13
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function writeln($messages, int $options = 0): void
18
    {
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function listing(array $messages, int $indentation = 0): void
25
    {
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function forceOutput(callable $callable): void
32
    {
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38
    public function indent(int $indentation = 1, int $characters = 2, string $character = ' '): string
39
    {
40
        return '';
41
    }
42
43
    /**
44
     * {@inheritdoc}
45
     */
46
    public function confirm(bool $confirmationDefault = true): bool
47
    {
48
        return true;
49
    }
50
51
    /**
52
     * {@inheritdoc}
53
     */
54
    public function logError(string $error, array &$errors): void
55
    {
56
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function displayErrors(array $errors, string $process, string $type = 'error', int $indentation = 0): void
62
    {
63
    }
64
}
65