ModelInterface.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. /**
  3. * ModelInterface
  4. *
  5. * PHP version 8.1
  6. *
  7. * @category Class
  8. * @package WikipaliApi\Model
  9. * @author OpenAPI Generator team
  10. * @link https://openapi-generator.tech
  11. */
  12. /**
  13. * MINT API
  14. *
  15. * International Academy Of Pali Tipitaka(国际巴利三藏学院) 由 `php openapi/scripts/generate.php` 依据 api-v13 的路由与控制器源码生成。 响应统一封装为 `{ok, message, data}`;`ok=false` 时 `message` 为错误信息。
  16. *
  17. * The version of the OpenAPI document: 2026.10.15
  18. * Generated by: https://openapi-generator.tech
  19. * Generator version: 7.25.0
  20. */
  21. /**
  22. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  23. * https://openapi-generator.tech
  24. * Do not edit the class manually.
  25. */
  26. namespace WikipaliApi\Model;
  27. /**
  28. * Interface abstracting model access.
  29. *
  30. * @package WikipaliApi\Model
  31. * @author OpenAPI Generator team
  32. */
  33. interface ModelInterface
  34. {
  35. /**
  36. * The original name of the model.
  37. *
  38. * @return string
  39. */
  40. public function getModelName();
  41. /**
  42. * Array of property to type mappings. Used for (de)serialization
  43. *
  44. * @return array
  45. */
  46. public static function openAPITypes();
  47. /**
  48. * Array of property to format mappings. Used for (de)serialization
  49. *
  50. * @return array
  51. */
  52. public static function openAPIFormats();
  53. /**
  54. * Array of attributes where the key is the local name, and the value is the original name
  55. *
  56. * @return array
  57. */
  58. public static function attributeMap();
  59. /**
  60. * Array of attributes to setter functions (for deserialization of responses)
  61. *
  62. * @return array
  63. */
  64. public static function setters();
  65. /**
  66. * Array of attributes to getter functions (for serialization of requests)
  67. *
  68. * @return array
  69. */
  70. public static function getters();
  71. /**
  72. * Show all the invalid properties with reasons.
  73. *
  74. * @return array
  75. */
  76. public function listInvalidProperties();
  77. /**
  78. * Validate all the properties in the model
  79. * return true if all passed
  80. *
  81. * @return bool
  82. */
  83. public function valid();
  84. /**
  85. * Checks if a property is nullable
  86. *
  87. * @param string $property
  88. * @return bool
  89. */
  90. public static function isNullable(string $property): bool;
  91. /**
  92. * Checks if a nullable property is set to null.
  93. *
  94. * @param string $property
  95. * @return bool
  96. */
  97. public function isNullableSetToNull(string $property): bool;
  98. }