Command   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php /** MicroCommand */
2
3
namespace Micro\Base;
4
5
/**
6
 * Command class file.
7
 *
8
 * @author Oleg Lunegov <[email protected]>
9
 * @link https://github.com/linpax/microphp-framework
10
 * @copyright Copyright (c) 2013 Oleg Lunegov
11
 * @license https://github.com/linpax/microphp-framework/blob/master/LICENSE
12
 * @package Micro
13
 * @subpackage Base
14
 * @version 1.0
15
 * @since 1.0
16
 * @abstract
17
 */
18
abstract class Command implements ICommand
19
{
20
    /** @var array $args arguments for command */
21
    public $args = [];
22
    /** @var bool $result status of execute command */
23
    public $result = false;
24
    /** @var string $message status message of execute command */
25
    public $message = '';
26
27
28
    /**
29
     * Set arguments class
30
     *
31
     * @access public
32
     *
33
     * @param array $params configuration array
34
     *
35
     * @result void
36
     */
37
    public function __construct(array $params = [])
38
    {
39
        $this->args = $params;
40
    }
41
}
42