Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Tighten Handbook Class Order

Extracted for the benefit of non-Tightenites.

Class "things" should be ordered as follows:

  1. Traits
  2. Statics properties
  3. Constants
  4. Instance properties
  5. Constructor
  6. Static methods
  7. Instance methods
  8. Other magic methods

Note: (public before protected before private) applies to relevant categories above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment