@@ -9,7 +9,7 @@ final class OutputFormat
99 /**
1010 * Value format: `"` means double-quote, `'` means single-quote
1111 *
12- * @var string
12+ * @var non-empty- string
1313 */
1414 private $ stringQuotingType = '" ' ;
1515
@@ -176,11 +176,13 @@ final class OutputFormat
176176 private $ nextLevelFormat ;
177177
178178 /**
179- * @var int
179+ * @var int<0, max>
180180 */
181181 private $ indentationLevel = 0 ;
182182
183183 /**
184+ * @return non-empty-string
185+ *
184186 * @internal
185187 */
186188 public function getStringQuotingType (): string
@@ -189,6 +191,8 @@ public function getStringQuotingType(): string
189191 }
190192
191193 /**
194+ * @param non-empty-string $quotingType
195+ *
192196 * @return $this fluent interface
193197 */
194198 public function setStringQuotingType (string $ quotingType ): self
@@ -639,6 +643,8 @@ public function setRenderComments(bool $renderComments): self
639643 }
640644
641645 /**
646+ * @return int<0, max>
647+ *
642648 * @internal
643649 */
644650 public function getIndentationLevel (): int
@@ -647,6 +653,8 @@ public function getIndentationLevel(): int
647653 }
648654
649655 /**
656+ * @param int<1, max> $numberOfTabs
657+ *
650658 * @return $this fluent interface
651659 */
652660 public function indentWithTabs (int $ numberOfTabs = 1 ): self
@@ -655,6 +663,8 @@ public function indentWithTabs(int $numberOfTabs = 1): self
655663 }
656664
657665 /**
666+ * @param int<1, max> $numberOfSpaces
667+ *
658668 * @return $this fluent interface
659669 */
660670 public function indentWithSpaces (int $ numberOfSpaces = 2 ): self
0 commit comments