Skip to content

Update static properties to class constants where appropriate #504

Open
@ycombinator

Description

@ycombinator

Many classes that are descendants of OpenCloud\Common\Resource\BaseResource contain static properties such as $json_name and $json_collection_name. These properties are initialized in the class definitions but their values never change — and shouldn't change — at runtime. As such, these properties should be converted to constants.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions