SimplePet.php 585 B

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