Skip to content

[PHP] unable to access returned object due to protected container #6777

@jbs1

Description

@jbs1

I am using an php client generated with v.2.2.2 from this json.
When I call an some endpoint it would return something like eg. this:

Swagger\Client\Model\GetCharactersCharacterIdContracts200Ok Object
(
    [container:protected] => Array
        (
            [acceptor_id] => 0
            [assignee_id] => 2112925746
            [availability] => personal
        (
)

But as you can see the container is 'protected', thus i can't access anything inside, which makes it pretty useless.

I don't know if the 'protected' is there on purpose or if it is an error with the generation?
If is is there on purpose, how else can i access the things inside?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions