Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 691 Bytes

File metadata and controls

21 lines (15 loc) · 691 Bytes

Classes

  • The term "class" refers to all classes, interfaces, and traits
  • A class should only ever be autoloaded - never use require or include
  • Constants should only be declared on a class
  • Constants should use UPPERCASE_UNDERSCORED
  • Properties should use $camelCase
  • Classes should have all or no static members
  • Methods should use camelCase()
  • All parameters should define their type where possible
  • All methods should define their return type where possible
  • Methods should avoid becoming longer than 20-50 lines
  • Public functions should show the headlines of a class's functionality