Page MenuHomePhabricator

Return `$this` from setter methods
ClosedPublic

Authored by joshuaspence on Jun 25 2015, 8:34 AM.
Tags
None
Referenced Files
F14762555: D13422.diff
Thu, Jan 23, 6:43 AM
Unknown Object (File)
Wed, Jan 22, 1:41 AM
Unknown Object (File)
Tue, Jan 21, 10:07 AM
Unknown Object (File)
Sat, Jan 18, 5:20 AM
Unknown Object (File)
Thu, Jan 16, 10:11 PM
Unknown Object (File)
Sun, Jan 12, 8:10 PM
Unknown Object (File)
Sat, Jan 11, 1:29 PM
Unknown Object (File)
Fri, Dec 27, 12:42 AM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Commits
Restricted Diffusion Commit
rPf2435fd1d0b5: Return `$this` from setter methods
Summary

Return $this from setter methods for consistency. I started writing a linter rule to detect this, but I don't think it is trivial to do this properly.

Test Plan

Eyeball it.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Return `$this` from setter methods.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 25 2015, 10:58 PM
This revision was automatically updated to reflect the committed changes.