Command::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 3 Features 0
Metric Value
c 4
b 3
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace PEIP\Command;
4
5
/*
6
 * This file is part of the PEIP package.
7
 * (c) 2009-2016 Timo Michna <timomichna/yahoo.de>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
/**
14
 * Command.
15
 *
16
 * @author Timo Michna <timomichna/yahoo.de>
17
 * @extends \PEIP\ABS\Command\Command
18
 * @implements \PEIP\INF\Command\Command, \PEIP\INF\Data\ParameterHolder
19
 */
20
class Command extends \PEIP\ABS\Command\Command implements \PEIP\INF\Command\Command
21
{
22
    /**
23
     * @param $callable
24
     * @param $params
25
     *
26
     * @return
27
     */
28
    public function __construct($callable, array $params = [])
29
    {
30
        $this->callable = $callable;
31
        $this->setParameters($params);
32
    }
33
}
34