Homec4science

Return `$this` from setter methods

Authored by Joshua Spence <josh@joshuaspence.com> on Jul 6 2015, 14:53.

Description

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.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13422

Details

Committed
Joshua Spence <josh@joshuaspence.com>Jul 6 2015, 14:53
Pushed
aubortJan 31 2017, 17:16
Parents
rPHacb1eb81ccf4: Move some PhabricatorSearchField subclasses
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rPHf2435fd1d0b5: Return `$this` from setter methods (authored by Joshua Spence <josh@joshuaspence.com>).Jul 6 2015, 14:53