When I am working on craur, I try to keep every method well documented.
I define well documented in such way, that I don't document things, which php already knows (e.g. parameter count, type hinting, etc) or which are obvious when looking at the signature (e.g. type for parameter called: title).
One thing I tend to document, are examples (with @example
-tag) how the code is useful. Let's take this example for the createFromHtml method in craur: