Shell::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php declare(strict_types = 1);
2
3
namespace Venta\Framework\Commands;
4
5
use Psy\Shell as BaseShell;
6
use Venta\Console\AbstractCommand;
7
8
/**
9
 * Class Shell
10
 *
11
 * @package Venta\Commands
12
 * @codeCoverageIgnore
13
 */
14
class Shell extends AbstractCommand
15
{
16
    protected $description = 'Interactive shell';
17
18
    protected $signature = 'shell {includes[]=:Array of files to include in shell}';
19
20
    /**
21
     * @inheritDoc
22
     */
23
    public function handle()
24
    {
25
        $shell = new BaseShell;
26
        $shell->setIncludes($this->input()->getArgument('includes'));
27
        $shell->run();
28
    }
29
30
}