@@ 94-101 (lines=8) @@ | ||
91 | * @param string ...$names Parameter names |
|
92 | * @return bool |
|
93 | */ |
|
94 | public function has(...$names) { |
|
95 | foreach ($names as $name) { |
|
96 | if (!isset($this->_parameters[$name])) { |
|
97 | return false; |
|
98 | } |
|
99 | } |
|
100 | return true; |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * Get a parameter. |
@@ 119-126 (lines=8) @@ | ||
116 | * @param string ...$names Parameter names |
|
117 | * @return bool |
|
118 | */ |
|
119 | public function has(...$names) { |
|
120 | foreach ($names as $name) { |
|
121 | if (!isset($this->_parameters[$name])) { |
|
122 | return false; |
|
123 | } |
|
124 | } |
|
125 | return true; |
|
126 | } |
|
127 | ||
128 | /** |
|
129 | * Get a parameter. |