a guest Oct 23rd, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- METHOD_NAME = [CONTEXT] + VERB + [HOW]
- Must use camelCase (reference Zend Certificated Engineer study manual, Composer, and PSR standards).
- Must not start with “__” unless it’s a predefined magic method.
- Must start with an alphabetical character.
- Should be a noun.
- Should be the name of the thing modified by VERB.
- Should be omitted if the CONTEXT is implied by object.
- Should be the name of the function that is being performed.
- Should be based on a defined list of house terms (e.g. get, load, fetch).
- Reference thesaurus for assistance.
- Should be omitted if parameters are optional.
- May be omitted if multiple parameters are required.
- Prefixed by the word "By".
- $user->add($username, $id);
RAW Paste Data