We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi again Alex,
What is the rationale for Analytics::new('G-XXXXXX', 'eMVPMEcTbaI1iuWtrPw', true) instead of new Analytics('G-XXXXXX', 'eMVPMEcTbaI1iuWtrPw', true)?
Analytics::new('G-XXXXXX', 'eMVPMEcTbaI1iuWtrPw', true)
new Analytics('G-XXXXXX', 'eMVPMEcTbaI1iuWtrPw', true)
The text was updated successfully, but these errors were encountered:
Hi again Alex, What is the rationale for Analytics::new('G-XXXXXX', 'eMVPMEcTbaI1iuWtrPw', true) instead of new Analytics('G-XXXXXX', 'eMVPMEcTbaI1iuWtrPw', true)?
Thats mainly a readability thing for quick nested methods
$analytics = new Analytics('G-XXXXXX', 'eMVPMEcTbaI1iuWtrPw', true); $analytics->method() ->method() ->method();
compared to
$analytics = (new Analytics('G-XXXXXX', 'eMVPMEcTbaI1iuWtrPw', true)) ->method() ->method() ->method();
$analytics = Analytics::new('G-XXXXXX', 'eMVPMEcTbaI1iuWtrPw', true) ->method() ->method() ->method();
Sorry, something went wrong.
Oh I see, thank you for the explanation, I mainly use the second option, now I know one more.
No branches or pull requests
Hi again Alex,
What is the rationale for
Analytics::new('G-XXXXXX', 'eMVPMEcTbaI1iuWtrPw', true)
instead ofnew Analytics('G-XXXXXX', 'eMVPMEcTbaI1iuWtrPw', true)
?The text was updated successfully, but these errors were encountered: