Shell   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 1
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
}