Skip to content

Use Late State Binding to call toArray() method #20

Closed
@lorenzomar

Description

@lorenzomar

What about to call static toArray method using static::toArray() instead of self::toArray()?
In this way it is possible to extend the base class and use a data source different from class' constants list. I know it is a corner scenario, but doing so you are able to use DB as a dynamic data source.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions