- Notifications
You must be signed in to change notification settings - Fork330
Add a simple toArray() helper to complement the other helpers on the Point class.#96
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Add toArray() helper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Good idea 💯
Would you mind adding theimplements Arrayable
onPoint
class? (Illuminate\Contracts\Support\Arrayable
)
grimzy commentedMar 5, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Also -and I'm just thinking out loud here- it might be useful to implement $point =newPoint(1,2);echo$point['lat'];// 1echo$point['lng']// 2$point['lat'] =3;echo$point['lat'];// 3 Although if we implement
And to be complete, there's also What do you think? |
Add toArray() helper