DefaultConsoleCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 5 1
1
<?php /** MicroDefaultConsoleCommand */
2
3
namespace Micro\Cli\Consoles;
4
5
use Micro\Cli\ConsoleCommand;
6
7
/**
8
 * Class DefaultConsoleCommand
9
 *
10
 * @author Oleg Lunegov <[email protected]>
11
 * @link https://github.com/linpax/microphp-framework
12
 * @copyright Copyright (c) 2013 Oleg Lunegov
13
 * @license https://github.com/linpax/microphp-framework/blob/master/LICENSE
14
 * @package Micro
15
 * @subpackage Cli
16
 * @version 1.0
17
 * @since 1.0
18
 * @abstract
19
 */
20
class DefaultConsoleCommand extends ConsoleCommand
21
{
22
    /** @var mixed $data */
23
    public $data = 'Hello, world!';
24
25
26
    /**
27
     * @return void
28
     */
29
    public function execute()
30
    {
31
        $this->result = true;
32
        $this->message = $this->data;
33
    }
34
}
35