-
Notifications
You must be signed in to change notification settings - Fork 8
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
Cannot extends Analytics Class. #53
Comments
Hello @yondifon. I don't believe those properties should be protected as the example provided in Can you explain your use case and what issues you encounter? Are you trying to access |
I am trying to extends the analytics class and add https://github.com/GoogleCloudPlatform/php-docs-samples/blob/main/analyticsdata/src/run_report_with_ordering.php#L6 With Private properties the child can't use that parent property.
|
Gotcha. Our plan is to not expose underlying properties, but to provide an expressive and fluent way to interact with them. Otherwise, people could just use Google package. I'm planning to have a PR ready later today or tomorrow. Thanks for bringing this to our attention. |
@yondifon while I'm working on this, could you provide an example order by you'd like to perform? I will then provide a snipped of how it would look with our package to get your feedback. |
laravel-analytics/src/Reports/Reports.php Line 41 in 1cdbc19
An example right here, we want to get the top 10 visited pages.
🤔 And now that I have gone through this, I don't think this is correct.
|
Yes. It does. Thank you for this. |
Alright, I'll ping again once PR is ready for you to try it out. |
Alright. Thanks. I'll look it later today. |
Thanks for this! I've been busy with work so I haven't had a lot of time to review or pay attention to this recently. |
@yondifon Have you had time to test this out yet? |
Hey @Plytas Got swamped up with something else. I'll have a proper look this weekend. |
Hello .
Thank you for the work on this.
I have an issue extends and I think I have a lead.
These should protected right ??
laravel-analytics/src/Analytics.php
Lines 22 to 24 in 1cdbc19
For this to work
laravel-analytics/README.md
Lines 545 to 567 in 1cdbc19
The text was updated successfully, but these errors were encountered: