MCPcopy Create free account
hub / github.com/agnesoft/agdb / ModelInterface

Interface ModelInterface

agdb_api/php/lib/Model/ModelInterface.php:37–111  ·  view source on GitHub ↗

* Interface abstracting model access. * * @package Agnesoft\AgdbApi\Model * @author OpenAPI Generator team */

Source from the content-addressed store, hash-verified

35 * @author OpenAPI Generator team
36 */
37interface ModelInterface
38{
39 /**
40 * The original name of the model.
41 *
42 * @return string
43 */
44 public function getModelName();
45
46 /**
47 * Array of property to type mappings. Used for (de)serialization
48 *
49 * @return array
50 */
51 public static function openAPITypes();
52
53 /**
54 * Array of property to format mappings. Used for (de)serialization
55 *
56 * @return array
57 */
58 public static function openAPIFormats();
59
60 /**
61 * Array of attributes where the key is the local name, and the value is the original name
62 *
63 * @return array
64 */
65 public static function attributeMap();
66
67 /**
68 * Array of attributes to setter functions (for deserialization of responses)
69 *
70 * @return array
71 */
72 public static function setters();
73
74 /**
75 * Array of attributes to getter functions (for serialization of requests)
76 *
77 * @return array
78 */
79 public static function getters();
80
81 /**
82 * Show all the invalid properties with reasons.
83 *
84 * @return array
85 */
86 public function listInvalidProperties();
87
88 /**
89 * Validate all the properties in the model
90 * return true if all passed
91 *
92 * @return bool
93 */
94 public function valid();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected