← Home ← Codex ← DEBT
Browse by Category
+ added · updated 7d
✕ Clear A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Diagram: Chain of Responsibility Pattern Chain of Responsibility Pattern PHP 5.0+
Passes a request along a chain of handlers, each deciding whether to process it or pass it to the next handler.
3mo ago quality intermediate
Cohesion
The degree to which elements within a module belong together; high cohesion means a class does one thing and does it well.
3mo ago quality intermediate
Command Pattern PHP 5.0+
Encapsulates a request as an object, enabling queuing, logging, undo/redo, and decoupling of request sender from receiver.
3mo ago quality intermediate
Command Query Separation (CQS)
Methods should either return a value (query) or change state (command), but never both.
3mo ago quality intermediate
Composite Pattern
Treats individual objects and compositions of objects uniformly through a shared interface, enabling tree-structured hierarchies.
3mo ago quality intermediate
Composition Over Inheritance 🧠 1
Favour assembling behaviour from injected collaborator objects rather than inheriting it from a parent class.
3mo ago quality intermediate
Constructor Property Promotion (PHP 8.0) PHP 8.0+
Declare and assign class properties directly in constructor parameters using visibility modifiers, eliminating boilerplate.
3mo ago php beginner
Coupling
The degree to which one module depends on another; high coupling makes changes expensive and testing difficult.
3mo ago quality intermediate
Closures & Anonymous Functions PHP 5.3+ 🧠 1
First-class anonymous functions that can capture variables from their enclosing scope via the use keyword.
3mo ago php intermediate
✓ schema.org compliant