Skip to content

refactor: remove constructor and rely on static factory method in Conjoon\Data\Resource\ResourceDescription #37

@ThorstenSuckow

Description

@ThorstenSuckow

ResourceDescriptions are stateless, immutable objects.
Implementing APIs are safe to use singleton instances of objects of these classes.
Therefor, the constructor will be marked protected and a getInstance(): static method will be made available.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions