Pet.php 565 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * @SWG\Definition(
  4. * definition="NewPet",
  5. * type="object",
  6. * required={"name"}
  7. * )
  8. */
  9. class Pet
  10. {
  11. public $id;
  12. /**
  13. * @SWG\Property(type="string")
  14. */
  15. public $name;
  16. /**
  17. * @SWG\Property(type="string")
  18. */
  19. public $tag;
  20. }
  21. /**
  22. * @SWG\Definition(
  23. * definition="Pet",
  24. * type="object",
  25. * allOf={
  26. * @SWG\Schema(ref="#/definitions/NewPet"),
  27. * @SWG\Schema(
  28. * required={"id"},
  29. * @SWG\Property(property="id", format="int64", type="integer")
  30. * )
  31. * }
  32. * )
  33. */