CustomerInterface.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. declare(strict_types=1);
  3. namespace OpenApiFixures;
  4. use OpenApi\Annotations as OA;
  5. /**
  6. * @OA\Schema(schema="Customer", description="Fixture for Interface Test")
  7. */
  8. interface CustomerInterface
  9. {
  10. /**
  11. * The first name of the customer.
  12. *
  13. * @var string
  14. * @example John
  15. * @OA\Property()
  16. */
  17. public function firstname();
  18. /**
  19. * @var null|string The second name of the customer.
  20. * @example Allan
  21. * @OA\Property()
  22. */
  23. public function secondname();
  24. /**
  25. * The third name of the customer.
  26. *
  27. * @var string|null
  28. * @example Peter
  29. * @OA\Property()
  30. */
  31. public function thirdname();
  32. /**
  33. * The unknown name of the customer.
  34. *
  35. * @var unknown|null
  36. * @example Unknown
  37. * @OA\Property()
  38. */
  39. public function fourthname();
  40. /**
  41. * @var string The lastname of the customer.
  42. * @OA\Property()
  43. */
  44. public function lastname();
  45. /**
  46. * @OA\Property()
  47. * @var string[]
  48. */
  49. public function tags();
  50. /**
  51. * @OA\Property()
  52. * @var Customer
  53. */
  54. public function submittedBy();
  55. /**
  56. * @OA\Property()
  57. * @var Customer[]
  58. */
  59. public function friends();
  60. /**
  61. * @OA\Property()
  62. * @var Customer|null
  63. */
  64. public function bestFriend();
  65. }