MethodOptions::isStatic()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
namespace SoliDry\Helpers;
3
4
5
use SoliDry\Types\PhpInterface;
6
7
/**
8
 * Class MethodOptions
9
 * @package SoliDry\Helpers
10
 */
11
class MethodOptions
12
{
13
    /**
14
     * @var string
15
     */
16
    private string $modifier = PhpInterface::PHP_MODIFIER_PUBLIC;
17
18
    /**
19
     * @var string
20
     */
21
    private string $name = '';
22
23
    /**
24
     * @var string
25
     */
26
    private string $returnType = '';
27
28
    /**
29
     * @var bool
30
     */
31
    private bool $isStatic = false;
32
33
    /**
34
     * @var array
35
     */
36
    private array $params = [];
37
38
    /**
39
     * @return string
40
     */
41
    public function getModifier() : string
42
    {
43
        return $this->modifier;
44
    }
45
46
    /**
47
     * @param string $modifier
48
     */
49
    public function setModifier($modifier) : void
50
    {
51
        $this->modifier = $modifier;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getName() : string
58
    {
59
        return $this->name;
60
    }
61
62
    /**
63
     * @param string $name
64
     */
65
    public function setName($name) : void
66
    {
67
        $this->name = $name;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getReturnType() : string
74
    {
75
        return $this->returnType;
76
    }
77
78
    /**
79
     * @param string $returnType
80
     */
81
    public function setReturnType($returnType) : void
82
    {
83
        $this->returnType = $returnType;
84
    }
85
86
    /**
87
     * @return boolean
88
     */
89
    public function isStatic() : bool
90
    {
91
        return $this->isStatic;
92
    }
93
94
    /**
95
     * @param boolean $isStatic
96
     */
97
    public function setIsStatic($isStatic) : void
98
    {
99
        $this->isStatic = $isStatic;
100
    }
101
102
    /**
103
     * @return array
104
     */
105
    public function getParams()
106
    {
107
        return $this->params;
108
    }
109
110
    /**
111
     * @param array $params
112
     */
113
    public function setParams($params)
114
    {
115
        $this->params = $params;
116
    }
117
}