Completed
Pull Request — master (#26)
by Andriy
04:25
created
src/model/AbstractModel.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 	/**
71 71
 	 * Sets the description, which will also be used when generating a docblock
72 72
 	 * 
73
-	 * @param string|array $description
73
+	 * @param string $description
74 74
 	 * @return $this
75 75
 	 */
76 76
 	public function setDescription($description) {
Please login to merge, or discard this patch.
src/model/ConstantsInterface.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
 	 * Sets a collection of constants
8 8
 	 * 
9 9
 	 * @param PhpConstant[] $constants
10
+	 * @return parts\ConstantsTrait
10 11
 	 */
11 12
 	public function setConstants(array $constants);
12 13
 	
13 14
 	/**
14 15
 	 * Adds a constant
15 16
 	 * 
16
-	 * @param string|PhpConstant $name constant name or instance
17 17
 	 * @param string $value
18 18
 	 * @return $this
19 19
 	 */
Please login to merge, or discard this patch.
src/model/GenerateableInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -5,6 +5,7 @@
 block discarded – undo
5 5
 
6 6
 	/**
7 7
 	 * Generates docblock based on provided information
8
+	 * @return void
8 9
 	 */
9 10
 	public function generateDocblock();
10 11
 }
11 12
\ No newline at end of file
Please login to merge, or discard this patch.
src/model/parts/InterfacesTrait.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -7,8 +7,14 @@
 block discarded – undo
7 7
 
8 8
 	private $interfaces = [];
9 9
 
10
+	/**
11
+	 * @param string $qualifiedName
12
+	 */
10 13
 	abstract public function addUseStatement($qualifiedName, $alias = null);
11 14
 
15
+	/**
16
+	 * @param string $qualifiedName
17
+	 */
12 18
 	abstract public function removeUseStatement($qualifiedName);
13 19
 
14 20
 	abstract public function getNamespace();
Please login to merge, or discard this patch.
src/model/parts/TraitsTrait.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,8 +7,14 @@  discard block
 block discarded – undo
7 7
 
8 8
 	private $traits = [];
9 9
 
10
+	/**
11
+	 * @param string $qualifiedName
12
+	 */
10 13
 	abstract public function addUseStatement($qualifiedName, $alias = null);
11 14
 
15
+	/**
16
+	 * @param string $qualifiedName
17
+	 */
12 18
 	abstract public function removeUseStatement($qualifiedName);
13 19
 
14 20
 	abstract public function getNamespace();
@@ -19,7 +25,7 @@  discard block
 block discarded – undo
19 25
 	 * If the trait is passed as PhpTrait object, 
20 26
 	 * the trait is also added as use statement.
21 27
 	 *
22
-	 * @param PhpTrait|string $trait trait or qualified name
28
+	 * @param PhpTrait $trait trait or qualified name
23 29
 	 * @return $this
24 30
 	 */
25 31
 	public function addTrait($trait) {
Please login to merge, or discard this patch.
src/parser/visitor/AbstractPhpStructVisitor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -263,6 +263,9 @@
 block discarded – undo
263 263
 		}
264 264
 	}
265 265
 	
266
+	/**
267
+	 * @return string
268
+	 */
266 269
 	private function getVisibility(Node $node) {
267 270
 		if ($node->isPrivate()) {
268 271
 			return AbstractPhpMember::VISIBILITY_PRIVATE;
Please login to merge, or discard this patch.
src/visitor/DefaultNavigator.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -146,6 +146,9 @@  discard block
 block discarded – undo
146 146
 		return $this->constantSortFunc ?  : 'strcasecmp';
147 147
 	}
148 148
 
149
+	/**
150
+	 * @return callable
151
+	 */
149 152
 	private function getMethodSortFunc() {
150 153
 		if (null !== $this->methodSortFunc) {
151 154
 			return $this->methodSortFunc;
@@ -171,6 +174,9 @@  discard block
 block discarded – undo
171 174
 		return self::$defaultMethodSortFunc;
172 175
 	}
173 176
 
177
+	/**
178
+	 * @return callable
179
+	 */
174 180
 	private function getPropertySortFunc() {
175 181
 		if (null !== $this->propertySortFunc) {
176 182
 			return $this->propertySortFunc;
Please login to merge, or discard this patch.
src/visitor/DefaultVisitor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -357,6 +357,9 @@
 block discarded – undo
357 357
 		}
358 358
 	}
359 359
 
360
+	/**
361
+	 * @param string $type
362
+	 */
360 363
 	protected function writeFunctionReturnType($type) {
361 364
 		if ($this->config->getGenerateReturnTypeHints() && $type != NULL && false === strpos($type, '|')) {
362 365
 			$this->writer->write(': ')->write($type);
Please login to merge, or discard this patch.