Skip to content

Refactor classes to have named constructors #6

@dkreuer

Description

@dkreuer

Named constructors (implemented as static methods returning self) are better in transporting the intent of a constructor. More they allow to refactor even object constructing internally by marking the __construct() as private.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions