Skip to content

how to generate function(GuardEvent|TransitionEvent) {... #176

Description

@tacman

I'm trying to generate

public function getRow(GuardEvent|TransitionEvent $event): Row

but I can't figure out how to add more than one type. I see setType, but not addType or setTypes()

    $parameter = $method
        ->addParameter('event');
    $parameter
        ->setType(GuardEvent::class)
        ->setType(TransitionEvent::class);

Is there a way to do this? Thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions