Application   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 9

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 9
dl 0
loc 35
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 14 1
A getLongVersion() 0 4 1
1
<?php
2
3
namespace Solr\Console;
4
5
use Symfony\Component\Console;
6
7
/**
8
 * An Application is the container for a collection of commands.
9
 */
10
class Application extends Console\Application
11
{
12
    /**
13
     * @var string
14
     */
15
    private $title = 'Solr Management Console';
16
17
    /**
18
     * Constructor.
19
     */
20
    public function __construct()
21
    {
22
        parent::__construct($this->title);
23
24
        $this->add(new Command\Collection\All());
25
        $this->add(new Command\Collection\Reload());
26
        $this->add(new Command\Collection\Remove());
27
        $this->add(new Command\Collection\Create());
28
        $this->add(new Command\Schema\All());
29
        $this->add(new Command\Schema\LinkConfig());
30
        $this->add(new Command\Schema\Download());
31
        $this->add(new Command\Schema\Upload());
32
        $this->add(new Command\Schema\Remove());
33
    }
34
35
    /**
36
     * Get application title.
37
     *
38
     * @return string
39
     */
40
    public function getLongVersion()
41
    {
42
        return sprintf('<info>%s</info>', $this->getName());
43
    }
44
}
45