Product.php 501 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace UsingRefs;
  3. ?>
  4. A common scenario is to let swagger-php generate a definition based on your model class.
  5. These definitions can then be referenced with `ref="#/definitions/$classname"
  6. <?php
  7. /**
  8. * @SWG\Definition()
  9. */
  10. class Product {
  11. /**
  12. * The unique identifier of a product in our catalog.
  13. *
  14. * @var integer
  15. * @SWG\Property(format="int64")
  16. */
  17. public $id;
  18. /**
  19. * @var boolean
  20. * @SWG\Property(format="boolean")
  21. */
  22. public $status;
  23. }