Skip to content

Commit d3aae60

Browse files
authored
Merge pull request #26 from php-api-clients/drop-operation-suffix
Drop Operation suffix
2 parents eb115a0 + 50c356b commit d3aae60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/Path.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function generate(string $path, string $namespace, string $baseNam
3232
$class = $factory->class($className)->makeFinal();
3333

3434
foreach ($pathItem->getOperations() as $method => $operation) {
35-
$operationClassName = str_replace('/', '\\', '\\' . $baseNamespace . 'Operation/' . (new Convert($operation->operationId))->fromTrain()->toPascal()) . 'Operation';
35+
$operationClassName = str_replace('/', '\\', '\\' . $baseNamespace . 'Operation/' . (new Convert($operation->operationId))->fromTrain()->toPascal());
3636
$method =
3737
$factory->
3838
method($method)->

0 commit comments

Comments
 (0)