forked from loafle/openapi-generator-original
All Model classes include a set of methods - it makes sense to align them to a concrete interface to improve strict typing when referencing these models.
87 lines
1.8 KiB
Plaintext
87 lines
1.8 KiB
Plaintext
<?php
|
|
/**
|
|
* ModelInterface
|
|
*
|
|
* PHP version 5
|
|
*
|
|
* @category Class
|
|
* @package {{modelPackage}}
|
|
* @author Swagger Codegen team
|
|
* @link https://github.com/swagger-api/swagger-codegen
|
|
*/
|
|
|
|
{{>partial_header}}
|
|
/**
|
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
* https://github.com/swagger-api/swagger-codegen
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
namespace {{modelPackage}};
|
|
|
|
/**
|
|
* Interface abstracting model access.
|
|
*
|
|
* @package {{modelPackage}}
|
|
* @author Swagger Codegen team
|
|
*/
|
|
interface ModelInterface
|
|
{
|
|
/**
|
|
* The original name of the model.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getModelName();
|
|
|
|
/**
|
|
* Array of property to type mappings. Used for (de)serialization
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function swaggerTypes();
|
|
|
|
/**
|
|
* Array of property to format mappings. Used for (de)serialization
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function swaggerFormats();
|
|
|
|
/**
|
|
* Array of attributes where the key is the local name, and the value is the original name
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function attributeMap();
|
|
|
|
/**
|
|
* Array of attributes to setter functions (for deserialization of responses)
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function setters();
|
|
|
|
/**
|
|
* Array of attributes to getter functions (for serialization of requests)
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function getters();
|
|
|
|
/**
|
|
* Show all the invalid properties with reasons.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function listInvalidProperties();
|
|
|
|
/**
|
|
* Validate all the properties in the model
|
|
* return true if all passed
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function valid();
|
|
}
|