Projekt

Obecné

Profil

Stáhnout (1.48 KB) Statistiky
| Větev: | Revize:
1
<?php
2

    
3
namespace Illuminate\Console;
4

    
5
use Symfony\Component\Console\Style\SymfonyStyle;
6
use Symfony\Component\Console\Input\InputInterface;
7
use Symfony\Component\Console\Output\OutputInterface;
8

    
9
class OutputStyle extends SymfonyStyle
10
{
11
    /**
12
     * The output instance.
13
     *
14
     * @var \Symfony\Component\Console\Output\OutputInterface
15
     */
16
    private $output;
17

    
18
    /**
19
     * Create a new Console OutputStyle instance.
20
     *
21
     * @param  \Symfony\Component\Console\Input\InputInterface  $input
22
     * @param  \Symfony\Component\Console\Output\OutputInterface  $output
23
     * @return void
24
     */
25
    public function __construct(InputInterface $input, OutputInterface $output)
26
    {
27
        $this->output = $output;
28

    
29
        parent::__construct($input, $output);
30
    }
31

    
32
    /**
33
     * Returns whether verbosity is quiet (-q).
34
     *
35
     * @return bool
36
     */
37
    public function isQuiet()
38
    {
39
        return $this->output->isQuiet();
40
    }
41

    
42
    /**
43
     * Returns whether verbosity is verbose (-v).
44
     *
45
     * @return bool
46
     */
47
    public function isVerbose()
48
    {
49
        return $this->output->isVerbose();
50
    }
51

    
52
    /**
53
     * Returns whether verbosity is very verbose (-vv).
54
     *
55
     * @return bool
56
     */
57
    public function isVeryVerbose()
58
    {
59
        return $this->output->isVeryVerbose();
60
    }
61

    
62
    /**
63
     * Returns whether verbosity is debug (-vvv).
64
     *
65
     * @return bool
66
     */
67
    public function isDebug()
68
    {
69
        return $this->output->isDebug();
70
    }
71
}
(6-6/9)