Customer.php 991 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace SwaggerFixures;
  3. use Exception;
  4. use Swagger\Logger as SwgLogger;
  5. use \Swagger\Logger;
  6. use Swagger\Annotations as SWG;
  7. /**
  8. * @SWG\Info(title="Fixture for ClassPropertiesTest", version="test")
  9. * @SWG\Definition()
  10. */
  11. class Customer
  12. {
  13. /**
  14. * The firstname of the customer.
  15. * @var string
  16. * @SWG\Property()
  17. */
  18. public $firstname;
  19. /**
  20. * @var string The lastname of the customer.
  21. * @SWG\Property()
  22. */
  23. public $lastname;
  24. /**
  25. * @SWG\Property()
  26. * @var string[]
  27. */
  28. public $tags;
  29. /**
  30. * @SWG\Property()
  31. * @var Customer
  32. */
  33. public $submittedBy;
  34. /**
  35. * @SWG\Property()
  36. * @var Customer[]
  37. */
  38. public $friends;
  39. /**
  40. * for ContextTest
  41. */
  42. public function testResolvingFullyQualifiedNames()
  43. {
  44. $test = new SwgLogger();
  45. $test2 = new Logger();
  46. $test3 = new SWG\Contact();
  47. throw new Exception();
  48. }
  49. }