MethodDescriptor   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 79
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 79.17%

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 2
dl 0
loc 79
ccs 19
cts 24
cp 0.7917
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A setMethodName() 0 4 1
A getMethodName() 0 4 1
A setArguments() 0 4 1
A getArguments() 0 4 1
A setResponse() 0 4 1
A getResponse() 0 4 1
A setStatic() 0 4 1
A isStatic() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * This file is part of phpDocumentor.
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @author    Mike van Riel <[email protected]>
11
 * @copyright 2010-2018 Mike van Riel / Naenius (http://www.naenius.com)
12
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
13
 * @link      http://phpdoc.org
14
 */
15
16
namespace phpDocumentor\Descriptor\Tag;
17
18
use phpDocumentor\Descriptor\Collection;
19
use phpDocumentor\Descriptor\TagDescriptor;
20
21
class MethodDescriptor extends TagDescriptor
22
{
23
    protected $methodName = '';
24
25
    protected $arguments;
26
27
    protected $response;
28
29
    /** @var bool */
30
    protected $static;
31
32 1
    public function __construct($name)
33
    {
34 1
        parent::__construct($name);
35
36 1
        $this->arguments = new Collection();
37 1
    }
38
39
    /**
40
     * @param string $methodName
41
     */
42 1
    public function setMethodName($methodName)
43
    {
44 1
        $this->methodName = $methodName;
45 1
    }
46
47 1
    public function getMethodName()
48
    {
49 1
        return $this->methodName;
50
    }
51
52
    /**
53
     * @param mixed $arguments
54
     */
55 1
    public function setArguments($arguments)
56
    {
57 1
        $this->arguments = $arguments;
58 1
    }
59
60
    /**
61
     * @return mixed
62
     */
63 1
    public function getArguments()
64
    {
65 1
        return $this->arguments;
66
    }
67
68
    /**
69
     * @param mixed $response
70
     */
71 1
    public function setResponse($response)
72
    {
73 1
        $this->response = $response;
74 1
    }
75
76
    /**
77
     * @return ReturnDescriptor
78
     */
79 1
    public function getResponse()
80
    {
81 1
        return $this->response;
82
    }
83
84
    /**
85
     * @param bool $static
86
     */
87
    public function setStatic($static)
88
    {
89
        $this->static = $static;
90
    }
91
92
    /**
93
     * @return bool
94
     */
95
    public function isStatic()
96
    {
97
        return $this->static;
98
    }
99
}
100