InputAbstract
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 1
dl 0
loc 30
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
prompt() 0 1 ?
promptFormatted() 0 1 ?
1
<?php
2
3
namespace League\CLImate\TerminalObject\Dynamic;
4
5
use League\CLImate\Util\Reader\ReaderInterface;
6
use League\CLImate\Util\Reader\Stdin;
7
8
abstract class InputAbstract extends DynamicTerminalObject
9
{
10
    /**
11
     * The prompt text
12
     *
13
     * @var string $prompt
14
     */
15
    protected $prompt;
16
17
    /**
18
     * An instance of ReaderInterface
19
     *
20
     * @var \League\CLImate\Util\Reader\ReaderInterface $reader
21
     */
22
    protected $reader;
23
24
    /**
25
     * Do it! Prompt the user for information!
26
     *
27
     * @return string
28
     */
29
    abstract public function prompt();
30
31
    /**
32
     * Format the prompt incorporating spacing and any acceptable options
33
     *
34
     * @return string
35
     */
36
    abstract protected function promptFormatted();
37
}
38