Skip to content
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

Fluent setter #32

Open
lmis-rom opened this issue Feb 28, 2021 · 0 comments
Open

Fluent setter #32

lmis-rom opened this issue Feb 28, 2021 · 0 comments
Labels
nice2have no impact

Comments

@lmis-rom
Copy link
Collaborator

lmis-rom commented Feb 28, 2021

Sometimes fluent setter, sometimes normal. fluent setter mostly not used:

example: src/Api/Builder/CapabilityBuilder.php:withTaskdata

$capability = new Capability();
$capability->setDirection($direction);
$capability->setTechnicalMessageType(CapabilityTypeDefinitions::ISO_11783_TASKDATA_ZIP);

could be for example:

$capability = (new Capability())
->setDirection($direction)
->setTechnicalMessageType(CapabilityTypeDefinitions::ISO_11783_TASKDATA_ZIP);
@lmis-rom lmis-rom added the nice2have no impact label Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nice2have no impact
Projects
None yet
Development

No branches or pull requests

1 participant