Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lorenzomar opened this issue Jul 21, 2015 · 1 comment
Closed

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

lorenzomar opened this issue Jul 21, 2015 · 1 comment

Comments

@lorenzomar
Copy link
Contributor

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.

@mnapoli
Copy link
Member

mnapoli commented Oct 8, 2015

Was implemented in #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants