Completed
Push — master ( 922e8a...cfbc00 )
by Akihito
02:15
created

Task::getCallable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Ackintosh\Snidel\Task;
3
4
use Ackintosh\Snidel\Task\TaskInterface;
5
use Ackintosh\Snidel\Task\MinifiedTask;
6
7
class Task implements TaskInterface
8
{
9
    /** @var callable */
10
    private $callable;
11
12
    /** @var array */
13
    private $args;
14
15
    /** @var string */
16
    private $tag;
17
18
    /**
19
     * @param   callable    $callable
20
     * @param   array       $args
21
     * @param   string      $string
0 ignored issues
show
Bug introduced by
There is no parameter named $string. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
22
     */
23
    public function __construct($callable, $args, $tag)
24
    {
25
        $this->callable     = $callable;
26
        $this->args         = $args;
27
        $this->tag          = $tag;
28
    }
29
30
    /**
31
     * @return  callable
32
     */
33
    public function getCallable()
34
    {
35
        return $this->callable;
36
    }
37
38
    /**
39
     * @return  mixed
40
     */
41
    public function getArgs()
42
    {
43
        return $this->args;
44
    }
45
46
    /**
47
     * @return  string|null
48
     */
49
    public function getTag()
50
    {
51
        return $this->tag;
52
    }
53
}
54