Mostafa Aghajani fa64c8e012
Issue: #21334 Abstract PHP support of "original" for variableNamingConvention (#21336)
* feat(php): add support for 'off' variable naming convention in AbstractPhpCodegen

* feat(php-laravel): add tests for issue 21334 with API and model definitions

* feat(php-laravel): update variableNamingConvention option in php-laravel help file to include 'off' as a valid value

* feat: enhance variableNamingConvention options to include 'off' and detailed descriptions in documentation

* feat(php): update variableNamingConvention from 'off' to 'original' in AbstractPhpCodegen

* feat: include php-laravel-issue-21334 in workflow triggers for push and pull_request events
2025-06-09 19:26:53 +08:00

54 lines
1.2 KiB
PHP

<?php declare(strict_types=1);
/**
* Issue 21334 - Abstract PHP Variable Naming Convention
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* PHP version 8.1
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI-Generator
* https://openapi-generator.tech
* Do not edit the class manually.
*
* Source files are located at:
*
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
*/
/**
* SampleModelToTestNamingConvention
*/
namespace OpenAPI\Server\Model;
/**
* SampleModelToTestNamingConvention
*/
use Crell\Serde\Renaming\Cases;
use Crell\Serde\Attributes as Serde;
#[Serde\ClassSettings(renameWith: Cases::snake_case)]
class SampleModelToTestNamingConvention
{
/**
*
*
* @param string $propCamelCase
*
*
* @param string $PropPascalCase
*
*
* @param string $Prop_withRandomCase
*/
public function __construct(
public string $propCamelCase = 'defaultName',
public string $PropPascalCase = 'DefaultName',
public string $Prop_withRandomCase = 'defaultName',
) {}
}