UsingPhpDoc.php 603 B

123456789101112131415161718192021222324252627282930
  1. <?php declare(strict_types=1);
  2. namespace OpenApiFixtures;
  3. /**
  4. * @OA\Info(title="Fixture for AugmentOperationTest", version="test")
  5. */
  6. class UsingPhpDoc
  7. {
  8. /**
  9. * Example summary
  10. *
  11. * Example description...
  12. * More description...
  13. *
  14. * @OA\Get(path="api/test1", @OA\Response(response="200", description="a response"))
  15. */
  16. public function methodWithDescription()
  17. {
  18. }
  19. /**
  20. * Example summary
  21. *
  22. * @OA\Get(path="api/test2", @OA\Response(response="200", description="a response"))
  23. */
  24. public function methodWithSummary()
  25. {
  26. }
  27. }