InputAbstract::promptFormatted()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
nc 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