1: <?php
2: /**
3: * ModelInterface
4: *
5: * PHP version 7.4
6: *
7: * @category Class
8: * @package Ally\PetStore\Schema
9: * @author OpenAPI Generator team
10: * @link https://openapi-generator.tech
11: */
12:
13: /**
14: * OpenAPI Petstore
15: *
16: * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
17: *
18: * The version of the OpenAPI document: 1.0.0
19: * Generated by: https://openapi-generator.tech
20: * OpenAPI Generator version: 6.1.0-SNAPSHOT
21: */
22:
23: /**
24: * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25: * https://openapi-generator.tech
26: * Do not edit the class manually.
27: */
28:
29: namespace Ally\PetStore\Schema;
30:
31: /**
32: * Interface abstracting model access.
33: *
34: * @package Ally\PetStore\Schema
35: * @author OpenAPI Generator team
36: */
37: interface 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();
95:
96: /**
97: * Checks if a property is nullable
98: *
99: * @param string $property
100: * @return bool
101: */
102: public static function isNullable(string $property): bool;
103:
104: /**
105: * Checks if a nullable property is set to null.
106: *
107: * @param string $property
108: * @return bool
109: */
110: public function isNullableSetToNull(string $property): bool;
111: }
112: