Skip to content

Viability to add typed setters #112

@ryok90

Description

@ryok90

Hello! I was messing with an implementation of this package and came across this situation.
I wonder if it would be possible to add typed setters for some properties, like Paths have with addPath.
Just to have more fluid and intuitive implementation.
If yes, would be willing to accept pull request with these kind of modifications?

Something like:

$pathItem = new PathItem();
$post = new Operation();
$pathItem->setPost($post);

I used a typescript documentation package that made a little bit easier to write. That's where my idea comes from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestunder discussionfeature/enhancement needs more input to decide if or how it should be implemented.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions