@@ -57,11 +57,21 @@ |
||
57 | 57 | |
58 | 58 | class SamplePolicy extends Policy |
59 | 59 | { |
60 | + /** |
|
61 | + * @param m\MockInterface $user |
|
62 | + * @param string $name |
|
63 | + * @param string $siteKey |
|
64 | + */ |
|
60 | 65 | public function update($user, $name, $siteKey) |
61 | 66 | { |
62 | 67 | return $this->check($user, $this->get($name, $siteKey), 'update'); |
63 | 68 | } |
64 | 69 | |
70 | + /** |
|
71 | + * @param m\MockInterface $user |
|
72 | + * @param string $name |
|
73 | + * @param string $siteKey |
|
74 | + */ |
|
65 | 75 | public function read($user, $name, $siteKey) |
66 | 76 | { |
67 | 77 | return $this->check($user, $this->get($name, $siteKey), 'read'); |
@@ -315,6 +315,9 @@ |
||
315 | 315 | ]; |
316 | 316 | } |
317 | 317 | |
318 | + /** |
|
319 | + * @param string $methodName |
|
320 | + */ |
|
318 | 321 | private function invokeMethod(&$object, $methodName, array $parameters = array()) |
319 | 322 | { |
320 | 323 | $reflection = new \ReflectionClass(get_class($object)); |
@@ -315,6 +315,9 @@ |
||
315 | 315 | ]; |
316 | 316 | } |
317 | 317 | |
318 | + /** |
|
319 | + * @param string $methodName |
|
320 | + */ |
|
318 | 321 | private function invokeMethod(&$object, $methodName, array $parameters = array()) |
319 | 322 | { |
320 | 323 | $reflection = new \ReflectionClass(get_class($object)); |
@@ -191,6 +191,10 @@ |
||
191 | 191 | $this->assertInstanceOf('Xpressengine\Tag\Tag', current($tags)); |
192 | 192 | } |
193 | 193 | |
194 | + /** |
|
195 | + * @param TagHandler $object |
|
196 | + * @param string $methodName |
|
197 | + */ |
|
194 | 198 | private function invokeMethod(&$object, $methodName, array $parameters = array()) |
195 | 199 | { |
196 | 200 | $reflection = new \ReflectionClass(get_class($object)); |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * |
249 | 249 | * @param boolean $isSuper 최고관리자 여부 |
250 | 250 | * |
251 | - * @return SettingsMenu[] |
|
251 | + * @return \Illuminate\Support\Collection |
|
252 | 252 | */ |
253 | 253 | public function getSettingsMenus($isSuper) |
254 | 254 | { |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | /** |
365 | 365 | * getRegisteredMenus |
366 | 366 | * |
367 | - * @return array |
|
367 | + * @return \Xpressengine\Support\Tree\NodeInterface[] |
|
368 | 368 | * @throws \Exception |
369 | 369 | */ |
370 | 370 | private function getRegisteredMenus() |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | /** |
205 | 205 | * Return the parent node or null |
206 | 206 | * |
207 | - * @return mixed |
|
207 | + * @return null|SettingsMenu |
|
208 | 208 | */ |
209 | 209 | public function getParent() |
210 | 210 | { |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | /** |
249 | 249 | * getChildren |
250 | 250 | * |
251 | - * @return NodeInterface[] |
|
251 | + * @return SettingsMenu[] |
|
252 | 252 | */ |
253 | 253 | public function getChildren() |
254 | 254 | { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * get counter instance |
52 | 52 | * |
53 | 53 | * @param string $name counter name |
54 | - * @param array $options counter options |
|
54 | + * @param string[] $options counter options |
|
55 | 55 | * @return Counter |
56 | 56 | */ |
57 | 57 | private function getCounter($name, array $options = []) |
@@ -117,7 +117,7 @@ |
||
117 | 117 | /** |
118 | 118 | * check exists |
119 | 119 | * |
120 | - * @return bool |
|
120 | + * @return boolean|null |
|
121 | 121 | */ |
122 | 122 | public function exists() |
123 | 123 | { |
@@ -428,7 +428,7 @@ |
||
428 | 428 | /** |
429 | 429 | * 덧글의 depth 반환 |
430 | 430 | * |
431 | - * @return float |
|
431 | + * @return integer |
|
432 | 432 | */ |
433 | 433 | public function getDepth() |
434 | 434 | { |