github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/php/model.mustache (about)

     1  <?php
     2  {{#models}}
     3  {{#model}}
     4  /**
     5   * {{classname}}
     6   *
     7   * PHP version 5
     8   *
     9   * @category Class
    10   * @package  {{invokerPackage}}
    11   * @author   OpenAPI Generator team
    12   * @link     https://openapi-generator.tech
    13   */
    14  
    15  {{>partial_header}}
    16  /**
    17   * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
    18   * https://openapi-generator.tech
    19   * Do not edit the class manually.
    20   */
    21  
    22  namespace {{modelPackage}};
    23  {{^isEnum}}
    24  {{^parentSchema}}
    25  
    26  use \ArrayAccess;
    27  {{/parentSchema}}
    28  {{/isEnum}}
    29  use \{{invokerPackage}}\ObjectSerializer;
    30  
    31  /**
    32   * {{classname}} Class Doc Comment
    33   *
    34   * @category Class
    35  {{#description}}
    36   * @description {{description}}
    37  {{/description}}
    38   * @package  {{invokerPackage}}
    39   * @author   OpenAPI Generator team
    40   * @link     https://openapi-generator.tech
    41   */
    42  {{#isEnum}}{{>model_enum}}{{/isEnum}}{{^isEnum}}{{>model_generic}}{{/isEnum}}
    43  {{/model}}{{/models}}