@@ -88,6 +88,7 @@ |
||
88 | 88 | |
89 | 89 | /** |
90 | 90 | * Generates a DocBlock object with applicable defaults for these tests. |
91 | + * @param boolean $withTags |
|
91 | 92 | */ |
92 | 93 | protected function givenADocBlockObject($withTags): DocBlock |
93 | 94 | { |
@@ -88,6 +88,7 @@ |
||
88 | 88 | |
89 | 89 | /** |
90 | 90 | * Generates a DocBlock object with applicable defaults for these tests. |
91 | + * @param boolean $withTags |
|
91 | 92 | */ |
92 | 93 | protected function givenADocBlockObject($withTags): DocBlock |
93 | 94 | { |
@@ -132,6 +132,13 @@ |
||
132 | 132 | return m::mock('phpDocumentor\Descriptor\Validator\Error'); |
133 | 133 | } |
134 | 134 | |
135 | + /** |
|
136 | + * @param string $date |
|
137 | + * @param integer $numberOfFiles |
|
138 | + * @param integer $numberOfDeprecated |
|
139 | + * @param integer $numberOfErrors |
|
140 | + * @param integer $numberOfMarkers |
|
141 | + */ |
|
135 | 142 | private function thenTheXmlReportShouldContain( |
136 | 143 | $date, |
137 | 144 | $numberOfFiles, |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * @param string $from_name |
146 | 146 | * @param string|ClassDescriptor|InterfaceDescriptor|TraitDescriptor $to |
147 | 147 | * |
148 | - * @return Edge|null |
|
148 | + * @return \self|null |
|
149 | 149 | */ |
150 | 150 | protected function createEdge($graph, $from_name, $to) |
151 | 151 | { |
@@ -176,6 +176,9 @@ discard block |
||
176 | 176 | return null; |
177 | 177 | } |
178 | 178 | |
179 | + /** |
|
180 | + * @param string $fqcn |
|
181 | + */ |
|
179 | 182 | protected function createNamespaceGraph($fqcn) |
180 | 183 | { |
181 | 184 | $namespaceParts = explode('\\', $fqcn); |
@@ -209,7 +212,7 @@ discard block |
||
209 | 212 | * @param string $name |
210 | 213 | * @param Graph $graph |
211 | 214 | * |
212 | - * @return Node |
|
215 | + * @return null|\self |
|
213 | 216 | */ |
214 | 217 | protected function createEmptyNode($name, $graph) |
215 | 218 | { |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * Returns the namespace for this element (defaults to global "\") |
117 | 117 | * |
118 | - * @return NamespaceDescriptor|string |
|
118 | + * @return string |
|
119 | 119 | */ |
120 | 120 | public function getNamespace() |
121 | 121 | { |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * Sets the file to which this element is associated. |
224 | 224 | * |
225 | - * @return bool |
|
225 | + * @return boolean|null |
|
226 | 226 | */ |
227 | 227 | public function setFile(FileDescriptor $file) |
228 | 228 | { |
@@ -41,6 +41,9 @@ |
||
41 | 41 | $this->object = new Discover($this->getDocumentMock(), ''); |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @return \ezcDocumentRst |
|
46 | + */ |
|
44 | 47 | protected function getDocumentMock() |
45 | 48 | { |
46 | 49 | if (!$this->document) { |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * If a relative QSEN is provided then this method will attempt to resolve it given the current namespace and |
172 | 172 | * namespace aliases. |
173 | 173 | * |
174 | - * @param Fqsen|string $link |
|
174 | + * @param string|null $link |
|
175 | 175 | * @return Fqsen|string |
176 | 176 | */ |
177 | 177 | private function resolveQsen($link) |
@@ -188,6 +188,7 @@ discard block |
||
188 | 188 | * be matched. |
189 | 189 | * |
190 | 190 | * @param Fqsen|string $link |
191 | + * @param string $description |
|
191 | 192 | */ |
192 | 193 | private function resolveElement(DescriptorAbstract $element, $link, ?string $description = null): string |
193 | 194 | { |
@@ -247,7 +248,7 @@ discard block |
||
247 | 248 | /** |
248 | 249 | * Generates a Markdown-formatted string representing a link with a description. |
249 | 250 | * |
250 | - * @param Fqsen|string $link |
|
251 | + * @param string|null $link |
|
251 | 252 | */ |
252 | 253 | private function generateMarkdownLink($link, string $description): string |
253 | 254 | { |
@@ -181,7 +181,7 @@ |
||
181 | 181 | * TODO: implement this |
182 | 182 | * |
183 | 183 | * @param array $sources List of source paths. |
184 | - * @param array $extensions List of extensions to scan for in directories. |
|
184 | + * @param string[] $extensions List of extensions to scan for in directories. |
|
185 | 185 | * |
186 | 186 | * @return Collection |
187 | 187 | */ |
@@ -98,6 +98,7 @@ |
||
98 | 98 | |
99 | 99 | /** |
100 | 100 | * Returns the file associated with this document. |
101 | + * @return \phpDocumentor\Plugin\Scrybe\Converter\Metadata\TableOfContents\File |
|
101 | 102 | */ |
102 | 103 | public function getFile() |
103 | 104 | { |