The What
Description
The name of the current class. It returns the full qualified class name, which means it includes the namespace (e.g. KnowTheCode\Docx
).
Note that as of PHP 5.4 __CLASS__
works also in traits. When used in a trait method, __CLASS__
is the name of the class the trait is used in.
Your functions are bloated. Put them on a diet. Think "skinny" and "as few lines as possible."
More coming soon…keep checking back.