Customer.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php declare(strict_types=1);
  2. // phpcs:ignoreFile (this file uses "\r\n" linebreaks on purpose)
  3. namespace OpenApiFixures;
  4. use Exception;
  5. use OpenApi\Annotations as OA;
  6. use OpenApi\Logger;
  7. use OpenApi\Logger as OpenApiLogger;
  8. /**
  9. * @OA\Info(title="Fixture for ClassPropertiesTest", version="test")
  10. * @OA\Schema()
  11. */
  12. class Customer
  13. {
  14. /**
  15. * The first name of the customer.
  16. *
  17. * @var string
  18. * @example John
  19. * @OA\Property()
  20. */
  21. public $firstname;
  22. /**
  23. * @var null|string The second name of the customer.
  24. * @example Allan
  25. * @OA\Property()
  26. */
  27. public $secondname;
  28. /**
  29. * The third name of the customer.
  30. *
  31. * @var string|null
  32. * @example Peter
  33. * @OA\Property()
  34. */
  35. public $thirdname;
  36. /**
  37. * The unknown name of the customer.
  38. *
  39. * @var unknown|null
  40. * @example Unknown
  41. * @OA\Property()
  42. */
  43. public $fourthname;
  44. /**
  45. * @var string The lastname of the customer.
  46. * @OA\Property()
  47. */
  48. public $lastname;
  49. /**
  50. * @OA\Property()
  51. * @var string[]
  52. */
  53. public $tags;
  54. /**
  55. * @OA\Property()
  56. * @var Customer
  57. */
  58. public $submittedBy;
  59. /**
  60. * @OA\Property()
  61. * @var Customer[]
  62. */
  63. public $friends;
  64. /**
  65. * @OA\Property()
  66. * @var Customer|null
  67. */
  68. public $bestFriend;
  69. /**
  70. * for ContextTest
  71. */
  72. public function testResolvingFullyQualifiedNames()
  73. {
  74. $test = new OpenApiLogger();
  75. $test2 = new Logger();
  76. $test3 = new OA\Contact();
  77. throw new Exception();
  78. }
  79. }