Completed
Push — develop ( 1a2502...4557a4 )
by Jaap
07:13
created

MethodDescriptor::isStatic()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * phpDocumentor
4
 *
5
 * PHP Version 5.3
6
 *
7
 * @copyright 2010-2014 Mike van Riel / Naenius (http://www.naenius.com)
8
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
9
 * @link      http://phpdoc.org
10
 */
11
12
namespace phpDocumentor\Descriptor\Tag;
13
14
use phpDocumentor\Descriptor\Collection;
15
use phpDocumentor\Descriptor\TagDescriptor;
16
17
class MethodDescriptor extends TagDescriptor
18
{
19
    protected $methodName = '';
20
21
    protected $arguments;
22
23
    protected $response;
24
25
    /** @var bool */
26
    protected $static;
27
28
    public function __construct($name)
29
    {
30
        parent::__construct($name);
31
32
        $this->arguments = new Collection();
33
    }
34
35
    /**
36
     * @param string $methodName
37
     */
38
    public function setMethodName($methodName)
39
    {
40
        $this->methodName = $methodName;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getMethodName()
47
    {
48
        return $this->methodName;
49
    }
50
51
    /**
52
     * @param mixed $arguments
53
     */
54
    public function setArguments($arguments)
55
    {
56
        $this->arguments = $arguments;
57
    }
58
59
    /**
60
     * @return mixed
61
     */
62
    public function getArguments()
63
    {
64
        return $this->arguments;
65
    }
66
67
    /**
68
     * @param mixed $response
69
     */
70
    public function setResponse($response)
71
    {
72
        $this->response = $response;
73
    }
74
75
    /**
76
     * @return ReturnDescriptor
77
     */
78
    public function getResponse()
79
    {
80
        return $this->response;
81
    }
82
83
    /**
84
     * @param bool $static
85
     */
86
    public function setStatic($static)
87
    {
88
        $this->static = $static;
89
    }
90
91
    /**
92
     * @return bool
93
     */
94
    public function isStatic()
95
    {
96
        return $this->static;
97
    }
98
}
99