@@ -35,6 +35,9 @@ |
||
| 35 | 35 | return $this->consumes; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $summary |
|
| 40 | + */ |
|
| 38 | 41 | public function __construct(AbstractObject $parent, $summary = null, Tag $tag = null) |
| 39 | 42 | { |
| 40 | 43 | parent::__construct($parent); |
@@ -69,6 +69,10 @@ discard block |
||
| 69 | 69 | $this->parseRange($definition, $match); |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $definition |
|
| 74 | + * @param string[] $match |
|
| 75 | + */ |
|
| 72 | 76 | private function parseFormat($definition, $match) |
| 73 | 77 | { |
| 74 | 78 | $type = strtolower($match[1]); |
@@ -86,6 +90,10 @@ discard block |
||
| 86 | 90 | $this->collectionFormat = self::$collectionFormats[$type]; |
| 87 | 91 | } |
| 88 | 92 | |
| 93 | + /** |
|
| 94 | + * @param string $definition |
|
| 95 | + * @param string[] $match |
|
| 96 | + */ |
|
| 89 | 97 | private function parseItems($definition, $match) |
| 90 | 98 | { |
| 91 | 99 | if (!empty($match[2])) { |
@@ -93,6 +101,10 @@ discard block |
||
| 93 | 101 | } |
| 94 | 102 | } |
| 95 | 103 | |
| 104 | + /** |
|
| 105 | + * @param string $definition |
|
| 106 | + * @param string[] $match |
|
| 107 | + */ |
|
| 96 | 108 | private function parseRange($definition, $match) |
| 97 | 109 | { |
| 98 | 110 | if (!empty($match[3])) { |
@@ -41,6 +41,9 @@ discard block |
||
| 41 | 41 | $this->parseDefault($definition, $match); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string[] $match |
|
| 46 | + */ |
|
| 44 | 47 | private function parseFormat($definition, $match) |
| 45 | 48 | { |
| 46 | 49 | if (!isset(self::$formats[strtolower($match[1])])) { |
@@ -49,6 +52,9 @@ discard block |
||
| 49 | 52 | $this->format = self::$formats[strtolower($match[1])]; |
| 50 | 53 | } |
| 51 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string[] $match |
|
| 57 | + */ |
|
| 52 | 58 | private function parseRange($definition, $match) |
| 53 | 59 | { |
| 54 | 60 | if (!empty($match[2])) { |
@@ -67,6 +73,9 @@ discard block |
||
| 67 | 73 | } |
| 68 | 74 | } |
| 69 | 75 | |
| 76 | + /** |
|
| 77 | + * @param string[] $match |
|
| 78 | + */ |
|
| 70 | 79 | private function parseDefault($definition, $match) |
| 71 | 80 | { |
| 72 | 81 | $this->default = isset($match[6]) && $match[6] !== '' ? $this->validateDefault($match[6]) : null; |
@@ -81,6 +81,10 @@ |
||
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $definition |
|
| 86 | + * @param string[] $match |
|
| 87 | + */ |
|
| 84 | 88 | private function parseDefault($definition, $match) |
| 85 | 89 | { |
| 86 | 90 | $this->default = isset($match[6]) && $match[6] !== '' ? $this->validateDefault($match[6]) : null; |
@@ -49,11 +49,17 @@ |
||
| 49 | 49 | $this->dirs = $dirs; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | + /** |
|
| 53 | + * @param string $name |
|
| 54 | + */ |
|
| 52 | 55 | public function define($name, $value = 1) |
| 53 | 56 | { |
| 54 | 57 | $this->defines[$name] = $value; |
| 55 | 58 | } |
| 56 | 59 | |
| 60 | + /** |
|
| 61 | + * @param string $name |
|
| 62 | + */ |
|
| 57 | 63 | public function undefine($name) |
| 58 | 64 | { |
| 59 | 65 | unset($this->defines[$name]); |
@@ -14,7 +14,8 @@ |
||
| 14 | 14 | class testParse_MethodNonDoc |
| 15 | 15 | { |
| 16 | 16 | // @rest\method get something |
| 17 | - public function Method1() { |
|
| 17 | + public function Method1() |
|
| 18 | + { |
|
| 18 | 19 | |
| 19 | 20 | } |
| 20 | 21 | } |
@@ -17,7 +17,8 @@ |
||
| 17 | 17 | * Description of method |
| 18 | 18 | * @rest\description some description |
| 19 | 19 | */ |
| 20 | - public function Method1() { |
|
| 20 | + public function Method1() |
|
| 21 | + { |
|
| 21 | 22 | // @rest\method get something |
| 22 | 23 | } |
| 23 | 24 | } |
@@ -17,7 +17,8 @@ |
||
| 17 | 17 | * Description of method |
| 18 | 18 | * @rest\description some description |
| 19 | 19 | */ |
| 20 | - public function Method1() { |
|
| 20 | + public function Method1() |
|
| 21 | + { |
|
| 21 | 22 | |
| 22 | 23 | } |
| 23 | 24 | } |
@@ -18,7 +18,8 @@ |
||
| 18 | 18 | * @rest\description some description |
| 19 | 19 | * @rest\method get something |
| 20 | 20 | */ |
| 21 | - public function Method1() { |
|
| 21 | + public function Method1() |
|
| 22 | + { |
|
| 22 | 23 | |
| 23 | 24 | } |
| 24 | 25 | } |