Skip to content
Advertisement

Tag: naming-conventions

PHP naming conventions about abstract classes and interfaces

Should an abstract class always be prefixed with Abstract and suffixed with Interface (when it’s an interface)? Is there any standard naming convention, similar to PSR-0 for folder structure/namespaces, but for classes? It seems redundant as the language has literal keywords for this very purpose. Answer There isn’t a convention for this; especially in PHP. This can all be organized

Advertisement