Pet.php 753 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace PetstoreIO;
  3. /**
  4. * @OA\Schema(required={"name", "photoUrls"}, @OA\Xml(name="Pet"))
  5. */
  6. class Pet
  7. {
  8. /**
  9. * @OA\Property(format="int64")
  10. * @var int
  11. */
  12. public $id;
  13. /**
  14. * @OA\Property(example="doggie")
  15. * @var string
  16. */
  17. public $name;
  18. /**
  19. * @var Category
  20. * @OA\Property()
  21. */
  22. public $category;
  23. /**
  24. * @var string[]
  25. * @OA\Property(@OA\Xml(name="photoUrl", wrapped=true))
  26. */
  27. public $photoUrls;
  28. /**
  29. * @var Tag[]
  30. * @OA\Property(@OA\Xml(name="tag", wrapped=true))
  31. */
  32. public $tags;
  33. /**
  34. * pet status in the store
  35. * @var string
  36. * @OA\Property(enum={"available", "pending", "sold"})
  37. */
  38. public $status;
  39. }